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