Beispiel #1
0
 private void siparisToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (orderFrm == null || orderFrm.IsDisposed == true)
     {
         CloseForm();
         orderFrm = new OrderFrm();
         FormBoyutlandir(orderFrm.Width, orderFrm.Height);
         orderFrm.MdiParent   = this;
         orderFrm.FormClosed += OrderFrm_FormClosed;
         orderFrm.WindowState = FormWindowState.Maximized;
         orderFrm.Show();
     }
     else
     {
         orderFrm.Activate();
     }
 }
Beispiel #2
0
 private void OrderFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     orderFrm = null;
 }