Пример #1
0
 private void transactionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (trForm == null)
     {
         trForm             = new TransactionForm();
         trForm.MdiParent   = this;
         trForm.FormClosed += TransactionFrm_FormClosed;
         trForm.Show();
     }
     else
     {
         trForm.Activate();
     }
 }
Пример #2
0
 private void TransactionFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     trForm = null;
 }