Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (N == null)
     {
         N             = new NewItem();
         N.FormClosed += new FormClosedEventHandler(N_FormClosed);
         N.Show();
     }
     else
     {
         N.Activate();
     }
 }
Exemple #2
0
 void N_FormClosed(object sender, FormClosedEventArgs e)
 {
     N = null;
 }