protected override void OnLoad(EventArgs e) { if (!this.DesignMode) { this.settings = Services.UserSettings; TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(settings); UpdateTabPages(); Subscribe(Services.TestLoader.Events); Services.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed); ITestEvents events = Services.TestLoader.Events; errorDisplay.Subscribe(events); notRunTree.Subscribe(events); } base.OnLoad(e); }
public void UpdatePages() { TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(); List <TextDisplayTabPage> oldPages = tabPages; tabPages = new List <TextDisplayTabPage>(); Font displayFont = GetFixedFont(); foreach (TextDisplayTabSettings.TabInfo tabInfo in tabSettings.Tabs) { if (tabInfo.Enabled) { TextDisplayTabPage thePage = null; foreach (TextDisplayTabPage page in oldPages) { if (page.Name == tabInfo.Name) { thePage = page; break; } } if (thePage == null) { thePage = new TextDisplayTabPage(tabInfo); thePage.Display.Subscribe(Services.TestLoader.Events); } thePage.DisplayFont = displayFont; tabPages.Add(thePage); tabControl.TabPages.Add(thePage); } } }
public void UpdatePages() { TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(); ArrayList oldPages = tabPages; tabPages = new ArrayList(); Font displayFont = GetFixedFont(); foreach (TextDisplayTabSettings.TabInfo tabInfo in tabSettings.Tabs) { if (tabInfo.Enabled) { TextDisplayTabPage thePage = null; foreach (TextDisplayTabPage page in oldPages) { if (page.Name == tabInfo.Name) { thePage = page; break; } } if (thePage == null) { thePage = new TextDisplayTabPage(tabInfo); } thePage.DisplayFont = displayFont; tabPages.Add(thePage); tabControl.TabPages.Add(thePage); } } }
public override void LoadSettings() { tabSettings.LoadSettings(settings); InitializeTabSelectComboBox(); }
public void UpdatePages() { TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(); ArrayList oldPages = tabPages; tabPages = new ArrayList(); Font displayFont = GetFixedFont(); foreach( TextDisplayTabSettings.TabInfo tabInfo in tabSettings.Tabs ) { if ( tabInfo.Enabled ) { TextDisplayTabPage thePage = null; foreach( TextDisplayTabPage page in oldPages ) if ( page.Name == tabInfo.Name ) { thePage = page; break; } if ( thePage == null ) thePage = new TextDisplayTabPage( tabInfo ); thePage.DisplayFont = displayFont; tabPages.Add( thePage ); tabControl.TabPages.Add( thePage ); } } }
protected override void OnLoad(EventArgs e) { if ( !this.DesignMode ) { this.settings = Services.UserSettings; TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings( settings ); UpdateTabPages(); Subscribe( Services.TestLoader.Events ); Services.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed); ITestEvents events = Services.TestLoader.Events; errorDisplay.Subscribe( events ); notRunTree.Subscribe( events ); displayController.Subscribe( events ); } base.OnLoad (e); }
public void UpdatePages() { TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(); List <TextDisplayTabPage> oldPages = tabPages; tabPages = new List<TextDisplayTabPage>(); Font displayFont = GetFixedFont(); foreach( TextDisplayTabSettings.TabInfo tabInfo in tabSettings.Tabs ) { if ( tabInfo.Enabled ) { TextDisplayTabPage thePage = null; foreach( TextDisplayTabPage page in oldPages ) if ( page.Name == tabInfo.Name ) { thePage = page; break; } if ( thePage == null ) { thePage = new TextDisplayTabPage( tabInfo ); thePage.Display.Subscribe(Services.TestLoader.Events); } thePage.DisplayFont = displayFont; tabPages.Add( thePage ); tabControl.TabPages.Add( thePage ); } } }
protected override void OnLoad(EventArgs e) { if (!this.DesignMode) { try//2013-1-10:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ� { if (ServicesArxNet.TestLoader == null) return;//2013-1-10:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ� this.settings = ServicesArxNet.UserSettings; TextDisplayTabSettings tabSettings = new TextDisplayTabSettings(); tabSettings.LoadSettings(settings); UpdateTabPages(); Subscribe(ServicesArxNet.TestLoader.Events); ServicesArxNet.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed); ITestEvents events = ServicesArxNet.TestLoader.Events; errorDisplay.Subscribe(events); notRunTree.Subscribe(events); displayController.Subscribe(events); base.OnLoad(e); } /*2013-1-10:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ catch (SystemException exception) { NUnitFormArxNet form = this.ParentForm as NUnitFormArxNet; form.MessageDisplay.Error("ResultTabsArxNet unable to Load", exception); } /*2013-1-10:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ } }