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();
         }
     }
 }
Exemplo n.º 3
0
		private void addConfigurationMenuItem_Click( object sender, System.EventArgs e )
		{
			using( AddConfigurationDialog dlg = new AddConfigurationDialog( TestProject ) )
			{
				this.Site.Container.Add( dlg );
				dlg.ShowDialog();
			}

            LoadOrReloadTestAsNeeded();
		}
Exemplo n.º 4
0
        public static void AddConfiguration(NUnitProject project)
        {
            AddConfigurationDialog dlg = new AddConfigurationDialog(project);

            dlg.ShowDialog();
        }
Exemplo n.º 5
0
        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();
        }