예제 #1
0
 private void أجهزةالمغسلةToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dvc == null)
     {
         dvc             = new WM_device();
         dvc.MdiParent   = this;
         dvc.FormClosed += new FormClosedEventHandler(dvc_FormClosed);
         dvc.Show();
     }
     else
     {
         dvc.Activate();
     }
 }
예제 #2
0
 void dvc_FormClosed(object sender, FormClosedEventArgs e)
 {
     dvc = null;
     //throw new NotImplementedException();
 }