Beispiel #1
0
 public static void GradientLabelColor(GradientLabel _Control, Color _ColorTop, Color _ColorBottom)
 {
     if (_Control.InvokeRequired)
     {
         _Control.Invoke(new MethodInvoker(delegate() { _Control.ColorTop = _ColorTop; _Control.ColorBottom = _ColorBottom; _Control.Refresh(); }));
     }
     else
     {
         _Control.ColorTop = _ColorTop; _Control.ColorBottom = _ColorBottom; _Control.Refresh();
     }
 }
Beispiel #2
0
 public static void GradientLabelText(GradientLabel _Control, string _Text)
 {
     if (_Control.InvokeRequired)
     {
         _Control.Invoke(new MethodInvoker(delegate() { _Control.Text = _Text; }));
     }
     else
     {
         _Control.Text = _Text;
     }
 }
Beispiel #3
0
 public static void GradientLabelText(GradientLabel _Control, string _Text, Color _FontColor)
 {
     if (_Control.InvokeRequired)
     {
         _Control.Invoke(new MethodInvoker(delegate() { _Control.Text = _Text; _Control.ForeColor = _FontColor; _Control.Refresh(); }));
     }
     else
     {
         _Control.Text = _Text; _Control.ForeColor = _FontColor; _Control.Refresh();
     }
 }
Beispiel #4
0
 public static void GradientLabelText(GradientLabel _Control, Color _FontColor, Color _BackColor)
 {
     if (_Control.InvokeRequired)
     {
         _Control.Invoke(new MethodInvoker(delegate()
         {
             _Control.ForeColor   = _FontColor;
             _Control.ColorTop    = _BackColor;
             _Control.ColorBottom = _BackColor;
         }));
     }
     else
     {
         _Control.ForeColor   = _FontColor;
         _Control.ColorTop    = _BackColor;
         _Control.ColorBottom = _BackColor;
     }
 }