private void addButton_Click(object sender, System.EventArgs e) { using( AddConfigurationDialog dlg = new AddConfigurationDialog( project ) ) { this.Site.Container.Add( dlg ); if ( dlg.ShowDialog() == DialogResult.OK ) FillListBox(); } }
private void addButton_Click(object sender, System.EventArgs e) { using (AddConfigurationDialog dlg = new AddConfigurationDialog(project)) { this.Site.Container.Add(dlg); if (dlg.ShowDialog() == DialogResult.OK) { FillListBox(); } } }
private void addConfigurationMenuItem_Click( object sender, System.EventArgs e ) { using( AddConfigurationDialog dlg = new AddConfigurationDialog( TestProject ) ) { this.Site.Container.Add( dlg ); dlg.ShowDialog(); } LoadOrReloadTestAsNeeded(); }
public static void AddConfiguration(NUnitProject project) { AddConfigurationDialog dlg = new AddConfigurationDialog(project); dlg.ShowDialog(); }
private void addConfigurationMenuItem_Click( object sender, System.EventArgs e ) { /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ if (TestProject == null) return; if (this.Site == null) return; if (this.Site.Container == null) return; /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ using( AddConfigurationDialog dlg = new AddConfigurationDialog( TestProject ) ) { this.Site.Container.Add( dlg ); dlg.ShowDialog(); } LoadOrReloadTestAsNeeded(); }