public ThemeColorPickerToolStripSplitButton()
 {
     this.AutoSize     = true;
     this.ImageScaling = ToolStripItemImageScaling.None;
     f = new ThemeColorPickerWindow(new Point(this.Bounds.Location.X, this.Bounds.Location.Y + this.Bounds.Height), FormBorderStyle.None, ThemeColorPickerWindow.Action.HideWindow, ThemeColorPickerWindow.Action.HideWindow);
     f.ColorSelected      += new ThemeColorPickerWindow.colorSelected(f_ColorSelected);
     this.DropDownOpening += new EventHandler(ThemeColorPickerToolStripSpliButton_DropDownOpening);
 }
Ejemplo n.º 2
0
        public DataGridViewButtonCell_ColorPicker()
        {
            this.colorPickerWindow = new ThemeColorPickerWindow(new Point(this.ContentBounds.Location.X, this.ContentBounds.Location.Y + this.ContentBounds.Height),
                                                                FormBorderStyle.None,
                                                                ThemeColorPickerWindow.Action.HideWindow,
                                                                ThemeColorPickerWindow.Action.HideWindow);

            this.colorPickerWindow.ColorSelected += new ThemeColorPickerWindow.colorSelected(colorPickerWindow_ColorSelected);
        }