Exemple #1
0
 /// <summary>
 /// Set tint globally to given form
 /// </summary>
 public static void SetTint(List <Control> controls, Color color)
 {
     // Iterate through all controls on form
     foreach (Control control in controls)
     {
         ControlExtensions.SetProperty(control, "Tint", color);
         control.Invalidate(true);
     }
 }
Exemple #2
0
 /// <summary>
 /// Set tint globally to given form
 /// </summary>
 public static void SetTint(Form form, Hex hex)
 {
     // Iterate through all controls on form
     foreach (Control control in form.Controls)
     {
         ControlExtensions.SetProperty(control, "Tint", hex.ToColor());
         control.Invalidate(true);
     }
 }