public RuleItem(ItemInfo info) { this.Text = info.Text; this.Image = info.Image; this.RestartExplorer = info.RestartExplorer; BtnShowMenu = new MenuButton(this); TsiSearch = new WebSearchMenuItem(this); this.ContextMenuStrip = new ContextMenuStrip(); this.ContextMenuStrip.Items.Add(TsiSearch); }
private RegRuleItem(ItemInfo info) { this.Text = info.Text; this.Image = info.Image; this.RestartExplorer = info.RestartExplorer; BtnShowMenu = new MenuButton(this); ChkVisible = new VisibleCheckBox(this); MyToolTip.SetToolTip(ChkVisible, info.Tip); TsiSearch = new WebSearchMenuItem(this); this.ContextMenuStrip = new ContextMenuStrip(); this.ContextMenuStrip.Items.Add(TsiSearch); }
public ShellNewLockItem(ShellNewList list) { this.Owner = list; this.Image = AppImage.Lock; this.Text = AppString.Other.LockNewMenu; BtnShowMenu = new MenuButton(this); ChkVisible = new VisibleCheckBox(this) { Checked = IsLocked }; MyToolTip.SetToolTip(ChkVisible, AppString.Tip.LockNewMenu); TsiSearch = new WebSearchMenuItem(this); TsiRegLocation = new RegLocationMenuItem(this); this.ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(), TsiRegLocation }); }
private void InitializeComponents() { BtnDelete = new DeleteButton(this); ContextMenuStrip = new ContextMenuStrip(); TsiSearch = new WebSearchMenuItem(this); TsiFileProperties = new FilePropertiesMenuItem(this); TsiFileLocation = new FileLocationMenuItem(this); ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(), TsiFileProperties, TsiFileLocation }); MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete); }
public ShellNewLockItem(ShellNewList list) { this.Owner = list; this.Image = AppImage.Lock; this.Text = AppString.Other.LockNewMenu; this.SetNoClickEvent(); BtnShowMenu = new MenuButton(this); ChkVisible = new VisibleCheckBox(this) { Checked = IsLocked }; MyToolTip.SetToolTip(ChkVisible, AppString.Tip.LockNewMenu); TsiSearch = new WebSearchMenuItem(this); this.ContextMenuStrip = new ContextMenuStrip(); this.ContextMenuStrip.Items.Add(TsiSearch); }
private void InitializeComponents() { BtnShowMenu = new MenuButton(this); ChkVisible = new VisibleCheckBox(this); TsiSearch = new WebSearchMenuItem(this); TsiFileLocation = new FileLocationMenuItem(this); TsiFileProperties = new FilePropertiesMenuItem(this); TsiRegLocation = new RegLocationMenuItem(this); TsiDeleteMe = new DeleteMeMenuItem(this); TsiRegExport = new RegExportMenuItem(this); TsiHandleGuid = new HandleGuidMenuItem(this); this.ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid, new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDeleteMe }); TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation, TsiRegExport }); }
private void InitializeComponents() { BtnShowMenu = new MenuButton(this); BtnDetailedEdit = new DetailedEditButton(this); TsiSearch = new WebSearchMenuItem(this); TsiFileProperties = new FilePropertiesMenuItem(this); TsiFileLocation = new FileLocationMenuItem(this); TsiRegLocation = new RegLocationMenuItem(this); TsiHandleGuid = new HandleGuidMenuItem(this); ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid, new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDelete }); TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation }); TsiDelete.Click += (sender, e) => DeleteMe(); }
private void InitializeComponents() { BtnDelete = new DeleteButton(this); ContextMenuStrip = new ContextMenuStrip(); TsiSearch = new WebSearchMenuItem(this); TsiFileProperties = new FilePropertiesMenuItem(this); TsiFileLocation = new FileLocationMenuItem(this); TsiRegLocation = new RegLocationMenuItem(this); TsiHandleGuid = new HandleGuidMenuItem(this); ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid, new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDelete }); TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation }); MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete); TsiDelete.Click += (sender, e) => { if (MessageBoxEx.Show(AppString.Message.ConfirmDelete, MessageBoxButtons.YesNo) == DialogResult.Yes) { DeleteMe(); } }; }