Exemple #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 (this.PaymentCatForm == null)
     {
         this.MdiChilrenSum++;
         this.PaymentCatForm = new ViewCategoriesUI(3);
         this.PaymentCatForm.MdiParent = this;
         this.PaymentCatForm.Show();
         this.PaymentCatForm.FormClosed += new FormClosedEventHandler(this.MdiChildClosed);
         this.PaymentCatForm.FormClosed += new FormClosedEventHandler(this.PaymentCatClose);
     }
     // Forces the form to the front
     else
     {
         this.PaymentCatForm.BringToFront();
     }
 }
Exemple #2
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)
 {
     this.PaymentCatForm = null;
 }