Пример #1
0
 public static void Mask(this Control control)
 {
     if (control.FindMaskPanel() == null)
     {
         MaskPanel panel = new MaskPanel();
         control.Controls.Add(panel);
         panel.Dock = DockStyle.Fill;
         panel.BringToFront();
     }
 }
Пример #2
0
 public static void Mask(this Control control)
 {
     if (FindMaskPanel(control) == null)
     {
         var panel = new MaskPanel {
             Dock = DockStyle.Fill
         };
         control.Controls.Add(panel);
         panel.BringToFront();
     }
 }
 public static void Mask(this Control control)
 {
     if (control.FindMaskPanel() == null)
     {
         MaskPanel panel = new MaskPanel();
         control.Controls.Add(panel);
         panel.Dock = DockStyle.Fill;
         panel.BringToFront();
     }
 }