コード例 #1
0
 private void urunEkleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (productAddUpdateFrm == null || productAddUpdateFrm.IsDisposed == true)
     {
         CloseForm();
         productAddUpdateFrm           = new ProductAddUpdateFrm();
         productAddUpdateFrm.MdiParent = this;
         var t = this.MdiChildren;
         productAddUpdateFrm.FormClosed += ProductAddUpdate_FormClosed;
         FormBoyutlandir(productAddUpdateFrm.Width, productAddUpdateFrm.Height);
         productAddUpdateFrm.WindowState = FormWindowState.Maximized;
         productAddUpdateFrm.Show();
     }
     else
     {
         productAddUpdateFrm.Activate();
     }
 }
コード例 #2
0
 private void ProductAddUpdate_FormClosed(object sender, FormClosedEventArgs e)
 {
     productAddUpdateFrm = null;
 }