Example #1
0
 /// <summary>
 /// Opens the form to allow the user to add a new expense
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void newExcpenceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (NewExpense == null)
     {
         MdiChilrenSum++;
         NewExpense           = new InputOutUI();
         NewExpense.MdiParent = this;
         NewExpense.Show();
         NewExpense.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         NewExpense.FormClosed += new FormClosedEventHandler(NewExpenseClose);
     }
     // Forces the form to the front
     else
     {
         NewExpense.BringToFront();
     }
 }
Example #2
0
 /// <summary>
 /// Opens the form to allow the user to add a new expense
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void newExcpenceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (NewExpense == null)
     {
         MdiChilrenSum++;
         NewExpense = new InputOutUI();
         NewExpense.MdiParent = this;
         NewExpense.Show();
         NewExpense.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         NewExpense.FormClosed += new FormClosedEventHandler(NewExpenseClose);
     }
     // Forces the form to the front
     else
     {
         NewExpense.BringToFront();
     }
 }