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