Example #1
0
 void CheckTimer()
 {
     if (SettingsManager.Options.TestEnabled && !Program.IsClosing)
     {
         CpuTimer.Start();
     }
     else
     {
         if (!IsHandleCreated)
         {
             return;
         }
         ControlsHelper.BeginInvoke(() =>
         {
             CpuTextBox.Text = "";
         });
     }
 }
Example #2
0
 void CheckTimer()
 {
     if (SettingsManager.Options.TestEnabled && !Program.IsClosing)
     {
         CpuTimer.Start();
     }
     else
     {
         if (!IsHandleCreated)
         {
             return;
         }
         BeginInvoke((MethodInvoker) delegate()
         {
             CpuTextBox.Text = "";
         });
     }
 }