コード例 #1
0
 void FrmOMS_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (sender is frmMainImage)
     {
         frmMainImage = null;
     }
 }
コード例 #2
0
 private void btmain_Click(object sender, EventArgs e)
 {
     if (frmMainImage == null)
     {
         frmMainImage             = new frmMainImage();
         frmMainImage.FormClosed += new FormClosedEventHandler(FrmOMS_FormClosed);
     }
     if (frmMainImage == null)
     {
         frmMainImage = new frmMainImage();
     }
     frmMainImage.Show(this.dockPanel2);
 }