コード例 #1
0
 private void katagoriSilToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (categoryDeleteFrm == null || categoryDeleteFrm.IsDisposed == true)
     {
         CloseForm();
         categoryDeleteFrm = new CategoryDeleteFrm();
         FormBoyutlandir(categoryDeleteFrm.Width, categoryDeleteFrm.Height);
         categoryDeleteFrm.MdiParent   = this;
         categoryDeleteFrm.FormClosed += CategoryDeleteFrm_FormClosed;
         categoryDeleteFrm.WindowState = FormWindowState.Maximized;
         categoryDeleteFrm.Show();
     }
     else
     {
         categoryDeleteFrm.Activate();
     }
 }
コード例 #2
0
 private void CategoryDeleteFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     categoryDeleteFrm = null;
 }