Exemple #1
0
 void countDown_EventCountdown(object sender, EventArgs e)
 {
     this.Invoke(new Action(() =>
     {
         try
         {
             if (countDown.CountdownSceonds <= 0)
             {
                 countDown.EventCountdown -= countDown_EventCountdown;
                 countDown.Stop();
                 this.Close();
             }
         }
         catch
         { }
     }));
 }
Exemple #2
0
 private void SeatFormChoose_FormClosing(object sender, FormClosingEventArgs e)
 {
     countDown.Stop();
     countDown.EventCountdown -= new EventHandler(countDown_EventCountdown);
 }