private void AbortActionBTN_Click(object sender, EventArgs e) { GoBTN.Text = "Go"; AbortActionBTN.Enabled = false; GoBTN.Enabled = true; TypeOfAction.Enabled = true; dateTimePicker1.Enabled = true; TimerTo.Stop(); }
private void TimerTo_Tick(object sender, EventArgs e) { Remaining -= OneSecond; if (Remaining.TotalSeconds < 1) { TimerTo.Stop(); DoAction(); } GoBTN.Text = Remaining.ToString(); }