Exemple #1
0
 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();
 }
Exemple #2
0
 private void TimerTo_Tick(object sender, EventArgs e)
 {
     Remaining -= OneSecond;
     if (Remaining.TotalSeconds < 1)
     {
         TimerTo.Stop();
         DoAction();
     }
     GoBTN.Text = Remaining.ToString();
 }