Example #1
0
 private void UpdateUI()
 {
     if (TimeLabel.InvokeRequired)
     {
         var d = new SafeCallDelegate(UpdateUI);
         TimeLabel.Invoke(d, new object[] { });
     }
     else
     {
         TimeLabel.FitText(Stopwatch.Elapsed.ToString().Substring(0, 8), 999);
     }
 }
Example #2
0
 private void TimeLabel_Resize(object sender, EventArgs e)
 {
     TimeLabel.FitText(Stopwatch.Elapsed.ToString().Substring(0, 8), 999);
 }