Пример #1
0
 /// <summary>
 /// Opens the form to allow the user to add a new recurring income
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void recurringIncomeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (NewRecurringIncome == null)
     {
         MdiChilrenSum++;
         RecurringIncomeInput ChildData = new RecurringIncomeInput();
         ChildData.MdiParent = this;
         ChildData.Show();
         ChildData.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         ChildData.FormClosed += new FormClosedEventHandler(NewRecurringIncomeClose);
     }
     // Forces the form to the front
     else
     {
         NewRecurringIncome.BringToFront();
     }
 }
Пример #2
0
 /// <summary>
 /// Opens the form to allow the user to add a new recurring income
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void RecurringIncomeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (NewRecurringIncome == null)
     {
         MdiChilrenSum++;
         var childData = new RecurringIncomeInput {
             MdiParent = this
         };
         childData.Show();
         childData.FormClosed += MdiChildClosed;
         childData.FormClosed += NewRecurringIncomeClose;
     }
     // Forces the form to the front
     else
     {
         NewRecurringIncome.BringToFront();
     }
 }
Пример #3
0
 /// <summary>
 /// Opens the form to allow the user to add a new recurring income
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void recurringIncomeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (NewRecurringIncome == null)
     {
         MdiChilrenSum++;
         RecurringIncomeInput ChildData = new RecurringIncomeInput();
         ChildData.MdiParent = this;
         ChildData.Show();
         ChildData.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         ChildData.FormClosed += new FormClosedEventHandler(NewRecurringIncomeClose);
     }
     // Forces the form to the front
     else
     {
         NewRecurringIncome.BringToFront();
     }
 }