예제 #1
0
 private void BtnStart_Click(object sender, EventArgs e)
 {
     PicAni.Show();
     BtnStart.Enabled = false;
     if (ValueTime.Value > 0)
     {
         StepTime = (ValueTime.Value * 60);
         TimerMain.Start();
         EnabelTMP = false;
     }
     else if (ValueTime.Value == 0)
     {
         EnabelTMP = true;
         TimerMain.Start();
     }
 }
예제 #2
0
 private void BtnStop_Click(object sender, EventArgs e)
 {
     if (StepTime > 0)
     {
         TimerMain.Enabled = !TimerMain.Enabled;
         if (TimerMain.Enabled)
         {
             PicAni.Show();
             BtnStop.Text      = "Stop";
             BtnStop.BackColor = Color.FromArgb(192, 0, 0);
         }
         else
         {
             PicAni.Hide();
             BtnStop.BackColor = Color.Orange;
             BtnStop.Text      = "Continue";
         }
     }
 }