예제 #1
0
 private void countryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (objCountryForm == null)
     {
         objCountryForm           = new CountryForm();
         objCountryForm.MdiParent = this;
         objCountryForm.Show();
         objCountryForm.FormClosing += objCountryForm_FormClosing;
     }
     else
     {
         objCountryForm.Activate();
     }
 }
예제 #2
0
 void objCountryForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     objCountryForm = null;
 }