Esempio n. 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();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// When the payment method categories form is closed, sets the main forms property to null
 /// </summary>
 /// <param name="sender">Standard sender object</param>
 /// <param name="e">Standard event object</param>
 private void PaymentCatClose(object sender, FormClosedEventArgs e)
 {
     PaymentCatForm = null;
 }