Beispiel #1
0
 private void StatusHighlightTimerTick(object sender, EventArgs args)
 {
     if (FStatusLabel != null)
     {
         FStatusLabel.BackColor = System.Drawing.Color.Transparent;
         FStatusLabel.ForeColor = this.ForeColor;
     }
     FStatusHighlightTimer.Stop();
 }
Beispiel #2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         DisposeStatusBar();
         FStatusHighlightTimer.Dispose();
         FStatusHighlightTimer = null;
         base.Dispose(disposing);
     }
 }
Beispiel #3
0
 public void SetStatus(string status)
 {
     if (FStatusLabel.Text != status)
     {
         FStatusLabel.Text = status;
         if (status != String.Empty)
         {
             FStatusLabel.BackColor = System.Drawing.SystemColors.Highlight;
             FStatusLabel.ForeColor = System.Drawing.SystemColors.HighlightText;
             FStatusHighlightTimer.Start();
         }
     }
 }