예제 #1
0
 /// <summary>
 /// Shows a list of the options in the payment method category group
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void paymentCatToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (PaymentCatForm == null)
     {
         MdiChilrenSum++;
         PaymentCatForm           = new ViewCategoriesUI(CategoryType.PaymentMethod);
         PaymentCatForm.MdiParent = this;
         PaymentCatForm.Show();
         PaymentCatForm.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         PaymentCatForm.FormClosed += new FormClosedEventHandler(PaymentCatClose);
     }
     // Forces the form to the front
     else
     {
         PaymentCatForm.BringToFront();
     }
 }
예제 #2
0
 /// <summary>
 /// Shows a list of the options in the income category group
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void IncomeCatToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (IncCatForm == null)
     {
         MdiChilrenSum++;
         IncCatForm = new ViewCategoriesUI(CategoryType.Income)
         {
             MdiParent = this
         };
         IncCatForm.Show();
         IncCatForm.FormClosed += MdiChildClosed;
         IncCatForm.FormClosed += IncCatClose;
     }
     // Forces the form to the front
     else
     {
         IncCatForm.BringToFront();
     }
 }
예제 #3
0
 /// <summary>
 /// Shows a list of the options in the payment method category group
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void paymentCatToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // If the instance is not already open
     if (PaymentCatForm == null)
     {
         MdiChilrenSum++;
         PaymentCatForm = new ViewCategoriesUI(CategoryType.PaymentMethod);
         PaymentCatForm.MdiParent = this;
         PaymentCatForm.Show();
         PaymentCatForm.FormClosed += new FormClosedEventHandler(MdiChildClosed);
         PaymentCatForm.FormClosed += new FormClosedEventHandler(PaymentCatClose);
     }
     // Forces the form to the front
     else
     {
         PaymentCatForm.BringToFront();
     }
 }