public void Reset() { ((ICustomize)this).ClearCustomizeBaseItems(); // for (int i = 0; i < this.DropDownItems.Count; i++) { this.DropDownItems[i].Visible = true; // ICustomize pCustomize = this.DropDownItems[i] as ICustomize; if (pCustomize == null) { continue; } pCustomize.Reset(); } }
private void ResetItem_Click(object sender, EventArgs e) { ToolStripMenuItem toolStripMenuItem = sender as ToolStripMenuItem; if (toolStripMenuItem == null || toolStripMenuItem.OwnerItem == null) { return; } ICustomize pCustomize = toolStripMenuItem.OwnerItem.Tag as ICustomize; if (pCustomize == null) { return; } pCustomize.Reset(); }
public void Reset() { if (!this.m_IsCustomizeToolBar) { ((ICustomize)this).ClearCustomizeBaseItems(); } // for (int i = 0; i < this.Items.Count - 1; i++) { this.Items[i].Visible = true; // ICustomize pCustomize = this.Items[i] as ICustomize; if (pCustomize == null) { continue; } pCustomize.Reset(); } }