Example #1
0
 private void urunSilToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (productDeleteFrm == null || productDeleteFrm.IsDisposed == true)
     {
         CloseForm();
         productDeleteFrm = new ProductDeleteFrm();
         FormBoyutlandir(productDeleteFrm.Width, productDeleteFrm.Height);
         productDeleteFrm.MdiParent   = this;
         productDeleteFrm.FormClosed += ProductDeleteFrm_FormClosed;
         productDeleteFrm.WindowState = FormWindowState.Maximized;
         productDeleteFrm.Show();
     }
     else
     {
         productDeleteFrm.Activate();
     }
 }
Example #2
0
 private void ProductDeleteFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     productDeleteFrm = null;
 }