public DiscoverControl() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint , true); _CurrentRender = new DiscoverProfessionalRender(); _AddRemoveButtonsMenuItem = new DiscoverMenuItem(this); _ConfigureButtonsMenuItem = new DiscoverMenuItem(this); _FewerButtonsMenuItem = new DiscoverMenuItem(this); _MoreButtonsMenuItem = new DiscoverMenuItem(this); _PaneOptionsMenuItem = new DiscoverMenuItem(this); _FewerButtonsMenuItem.Click += new EventHandler(_FewerButtonsMenuItem_Click); _MoreButtonsMenuItem.Click += new EventHandler(_MoreButtonsMenuItem_Click); _ConfigureButtonsMenuItem.Click += new EventHandler(_ConfigureButtonsMenuItem_Click); _ConfigureButtonsMenuItem.Visible = false; _FewerButtonsMenuItem.Image = Properties.Resources.show_fever; _MoreButtonsMenuItem.Image = Properties.Resources.show_more; _ContextMenu = new ContextMenuStrip(); _ContextMenu.Items.AddRange( new ToolStripItem[] { _MoreButtonsMenuItem, _FewerButtonsMenuItem, _PaneOptionsMenuItem, _ConfigureButtonsMenuItem, _AddRemoveButtonsMenuItem } ); _ContextMenu.Opening += new System.ComponentModel.CancelEventHandler(_ContextMenu_Opening); }
public DiscoverGroupControl() { _DiscoverRenderer = new DiscoverProfessionalRender(); }
public DiscoverGroupControl() { _DiscoverRenderer = new DiscoverProfessionalRender(); }