Exemplo n.º 1
0
 private void UpdateTimeStamp(DateTime timeStamp)
 {
     if (this.timeStampLabel.InvokeRequired)
     {
         DisplayRenderedImageTimeStampEventHandler d = new DisplayRenderedImageTimeStampEventHandler(UpdateTimeStamp);
         this.Invoke(d, new object[] { timeStamp });
     }
     else
     {
         timeStampLabel.Text = timeStamp.ToString("mm:ss.fff");
     }
 }
Exemplo n.º 2
0
 private void UpdateTimeStamp(DateTime timeStamp)
 {
     if (this.timeStampLabel.InvokeRequired)
     {
         DisplayRenderedImageTimeStampEventHandler d = new DisplayRenderedImageTimeStampEventHandler(UpdateTimeStamp);
         this.Invoke(d, new object[] { timeStamp });
     }
     else
     {
         timeStampLabel.Text = timeStamp.ToString("mm:ss.fff");
     }
 }