Пример #1
0
 private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     TimerUtil.TraceAndDebugMessage("Completed", 1);
     buttonTimeIn.Click += new System.EventHandler(this.buttonTimeIn_Click);
     KeyPress           += new System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     TimerUtil.TraceAndDebugMessage(string.Format("Exiting Chrono with {0} left", TimerUtil.FormatTime(m_dt - DateTime.Now)), 0);
     m_fDone = true;
     Close();
 }
Пример #3
0
 private void ChronometerForm_Load(object sender, EventArgs e)
 {
     TimerUtil.PlaySound(Properties.Resources.FormLoading);
     backgroundWorker2.RunWorkerAsync();
 }
Пример #4
0
 public ChronometerForm(TimeSpan ts)
 {
     InitializeComponent();
     m_dt = DateTime.Now + ts;
     TimerUtil.TraceAndDebugMessage(string.Format("Entering Chrono for {0}", TimerUtil.FormatTime(ts)), 0);
 }