/// <summary> /// This creates a new tab to view memory. /// </summary> /// <param name="name">Display name of the tab.</param> /// <param name="select">Whether or not to select this new tab.</param> public void addSettingsTab(string name, bool @select) { if (tabController.TabPages[name] == null) { // Create the new oTab class and tab page oTab oTabSettingsPage = new oTabSettingsPage(this, toolStrip, panelMain, mainToolStrip, name); tabs.Add(oTabSettingsPage); tabController.TabPages.Add(oTabSettingsPage.WorkingPage); oTabSettingsPage.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"settings.ico"); } if (select) { tabController.SelectedTab = tabController.TabPages[name]; } }
/// <summary> /// This creates a new tab to view memory. /// </summary> /// <param name="name">Display name of the tab.</param> /// <param name="select">Whether or not to select this new tab.</param> public void addSettingsTab(string name, bool @select) { if (tabController.TabPages[name] == null) { // Create the new oTab class and tab page oTab oTabSettingsPage = new oTabSettingsPage(this, toolStrip, panelMain, mainToolStrip, name); tabs.Add(oTabSettingsPage); tabController.TabPages.Add(oTabSettingsPage.WorkingPage); oTabSettingsPage.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"settings.ico"); } if (select) tabController.SelectedTab = tabController.TabPages[name]; }