private void ButtonMakeInvoice_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure, you want to make this Enstimate a Invoice?", "Confirmation Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         DataTable  dataItemsTable = (DataTable)dataGridItems.DataSource;
         DataTable  dataLaborTable = (DataTable)DataGridLabour.DataSource;
         NewInvioce NewInvoiceObj  = new NewInvioce(dataItemsTable, dataLaborTable, ComboBoxClientName.Text + "," + LabelHidden.Text);
         NewInvoiceObj.ShowDialog();
         this.Close();
     }
 }
Exemple #2
0
        private void newInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewInvioce NewInvoiceObj = new NewInvioce();

            NewInvoiceObj.ShowDialog();
        }
Exemple #3
0
        private void ButtonInvoice_Click(object sender, EventArgs e)
        {
            NewInvioce NewInvoiceObj = new NewInvioce();

            NewInvoiceObj.ShowDialog();
        }