private void btnManual_Click(object sender, EventArgs e)
{
if (btnManual.Text == "Start Line")
{
btnManual.Text = "Complete";
btnManual.Font = regularFont;
btnManual.ForeColor = Color.Black;
btnManual.BackColor = Color.Gray;
tTime1 = tSelectedTime;
DrawVerticalLine("StartLine", tTime1, Color.Tan, eShortLineStyle, nShortWidthSize); //this vertical line will draw ONLY when I click on the chart. I press the button Then I have to click the chart
}
else
{
btnManual.Text = "Start Line";
btnManual.Font = boldFont;
btnManual.ForeColor = Color.Black;
btnManual.BackColor = Color.Lavender;
//bShowMarkerLine = true;
this.drawList.Clear();
}
btnManual.Enabled = true;
}
Comment