예제 #1
0
 //Helper function: Shows Add Part screen.
 public void showAddParts()
 {
     if (ap == null)
     {
         ap             = new AddParts();
         ap.FormClosed += new FormClosedEventHandler(ap_FormClosed);
         ap.Show();
     }
     else
     {
         ap.Activate();
     }
 }
예제 #2
0
 void ap_FormClosed(object sender, FormClosedEventArgs e)
 {
     ap = null;
 }