Exemplo n.º 1
0
        public ColorPicker(Mode mode, Fader fader)
        {
            _mode  = mode;
            _fader = fader;

            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateButton(btnCancel);
            ThemeUpdateControls.UpdateButton(btnOK);
            Icon = Resources.Properties.Resources.Icon_Vixen3;
            whiteButton.BackColor       = System.Drawing.Color.White;
            whiteButton.BackgroundImage = null;
            redButton.BackColor         = System.Drawing.Color.Red;
            redButton.BackgroundImage   = null;
            greenButton.BackColor       = System.Drawing.Color.Green;
            greenButton.BackgroundImage = null;
            blueButton.BackColor        = System.Drawing.Color.Blue;
            blueButton.BackgroundImage  = null;

            UpdateUI();
            filter = new ShiftKeyFilter();
            filter.ShiftStateChanged += new EventHandler(filter_ShiftStateChanged);
            Application.AddMessageFilter(filter);
        }