Esempio n. 1
0
 /// <summary>
 /// Use to monitor click event  "Generate Invoice",opens new form
 /// </summary>
 private void generateInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (cboFragrance.SelectedIndex != -1 && cboPackage.SelectedIndex != -1)
     {
         generateInvoiceToolStripMenuItem.Enabled = true;
         Form myForm = new CarWashInvoiceForm(obj);
         myForm.ShowDialog();
         resetForm();
     }
     else
     {
         generateInvoiceToolStripMenuItem.Enabled = false;
     }
 }
        private void mnuGenerate_Click(object sender, EventArgs e)
        {
            CarWashInvoiceForm form = new CarWashInvoiceForm();

            form.ShowDialog();
        }