Exemple #1
0
 void countDown_EventCountdown(object sender, EventArgs e)
 {
     this.Invoke(new Action(() =>
     {
         try
         {
             if (countDown.CountdownSceonds <= 0)
             {
                 this.Close();
                 countDown.Stop();
             }
         }
         catch
         { }
     }));
 }
 private void FrmShowEnterOutLog_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (clientObject.ObjCardReader != null)
     {
         clientObject.ObjCardReader.CardNoGeted -= ObjCardReader_CardNoGeted;
     }
     countDown.Stop();
     countDown.EventCountdown -= countdown_EventCountdown;
     this.Dispose();
 }
Exemple #3
0
 public new void Hide()
 {
     countDownSeconds.Stop();
     countDownSeconds.EventCountdown        -= new EventHandler(countDownSeconds_EventCountdown);
     frmResolution.ViewModel.SeatAmcountFree = 0;
     frmResolution.ViewModel.SeatAmcountUsed = 0;
     frmResolution.ViewModel.SeatAmcountAll  = 0;
     frmResolution.ViewModel.RoomName        = "";
     base.Hide();
 }
Exemple #4
0
 private void FrmViolate_FormClosing(object sender, FormClosingEventArgs e)
 {
     countdown.Stop();
     countdown.EventCountdown -= countdown_EventCountdown;
     this.Dispose();
 }
Exemple #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     countdown.Stop();
     this.Close();
 }
 private void WaitSeatCancel_FormClosing(object sender, FormClosingEventArgs e)
 {
     countDown.EventCountdown -= new EventHandler(countDown_EventCountdown);
     countDown.Stop();
     this.Dispose();
 }
Exemple #7
0
 private void SetShortWarning_FormClosing(object sender, FormClosingEventArgs e)
 {
     countDown.Stop();
     countDown.EventCountdown -= new EventHandler(countDown_EventCountdown);
     this.Dispose();
 }
 private void ReadingRoom_FormClosing(object sender, FormClosingEventArgs e)
 {
     formClose.EventCountdown -= new EventHandler(formClose_EventCountdown);
     formClose.Stop();
 }