Exemplo n.º 1
0
 /// <summary>
 /// Sets current time
 /// </summary>
 /// <param name="time">DateTime object.</param>
 public void SetCurrentTime(DateTime time)
 {
     if (this.InvokeRequired)
     {
         SetCurrentTimeSafely d = new SetCurrentTimeSafely(SetCurrentTime);
         Invoke(d, new object[] { time });
     }
     else
     {
         currentTimeStatusLabel.Text = time.ToString("dd.MM.yyyy HH:mm:ss");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets current time
 /// </summary>
 /// <param name="time">DateTime object.</param>
 public void SetCurrentTime(DateTime time)
 {
     if (this.InvokeRequired)
     {
         SetCurrentTimeSafely d = new SetCurrentTimeSafely(SetCurrentTime);
         Invoke(d, new object[] { time });
     }
     else
     {
         currentTimeStatusLabel.Text = time.ToString("dd.MM.yyyy HH:mm:ss");
     }
 }