Exemple #1
0
 private void ShowPropertiesDialog(TestSuiteTreeNode node)
 {
     if (propertiesDialog == null)
     {
         Form owner = this.FindForm();
         propertiesDialog               = new TestPropertiesDialog(node);
         propertiesDialog.Owner         = owner;
         propertiesDialog.StartPosition = FormStartPosition.Manual;
         propertiesDialog.Left          = owner.Left + (owner.Width - propertiesDialog.Width) / 2;
         propertiesDialog.Top           = owner.Top + (owner.Height - propertiesDialog.Height) / 2;
         propertiesDialog.Show();
         propertiesDialog.Closed += new EventHandler(OnPropertiesDialogClosed);
     }
     else
     {
         propertiesDialog.DisplayProperties(node);
     }
 }
Exemple #2
0
 private void OnPropertiesDialogClosed(object sender, System.EventArgs e)
 {
     propertiesDialog = null;
 }
Exemple #3
0
 private void ShowPropertiesDialog( TestSuiteTreeNode node )
 {
     if ( propertiesDialog == null )
     {
         Form owner = this.FindForm();
         propertiesDialog = new TestPropertiesDialog( node );
         propertiesDialog.Owner = owner;
         propertiesDialog.StartPosition = FormStartPosition.Manual;
         propertiesDialog.Left = Math.Max(0, owner.Left + ( owner.Width - propertiesDialog.Width ) / 2);
         propertiesDialog.Top = Math.Max(0, owner.Top + ( owner.Height - propertiesDialog.Height ) / 2);
         propertiesDialog.Show();
         propertiesDialog.Closed += new EventHandler( OnPropertiesDialogClosed );
     }
     else
     {
         propertiesDialog.DisplayProperties( node );
     }
 }
Exemple #4
0
 private void OnPropertiesDialogClosed( object sender, System.EventArgs e )
 {
     propertiesDialog = null;
 }