Пример #1
0
 public Button() : base()
 {
     try
     {
         BackColor      = com.convertColour(com.Config.GetConfig("Colors", "ButtonFace").Setting);
         DoubleBuffered = true;
         // colLightBorder = ControlPaint.Light(BackColor, 50)
         // colDarkBorder = ControlPaint.Dark(BackColor, 50)
         base.Paint      += OnPaint;
         base.MouseUp    += Button_MouseUp;
         base.MouseDown  += Button_MouseDown;
         base.MouseClick += Button_MouseClick;
         base.Click      += Button_Click;
         base.KeyDown    += Button_KeyDown;
         base.KeyUp      += Button_KeyUp;
         Invalidate();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Пример #2
0
 public ProChicCol()
 {
     bkgrdSelCol = com.convertColour(com.Config.GetConfig("Colors", "Hilight").Setting);
     bkgrdCol    = com.convertColour(com.Config.GetConfig("Colors", "ButtonFace").Setting);
 }