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); }
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(); }
private void ChronometerForm_Load(object sender, EventArgs e) { TimerUtil.PlaySound(Properties.Resources.FormLoading); backgroundWorker2.RunWorkerAsync(); }
public ChronometerForm(TimeSpan ts) { InitializeComponent(); m_dt = DateTime.Now + ts; TimerUtil.TraceAndDebugMessage(string.Format("Entering Chrono for {0}", TimerUtil.FormatTime(ts)), 0); }