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(); } }
private void newInvoiceToolStripMenuItem_Click(object sender, EventArgs e) { NewInvioce NewInvoiceObj = new NewInvioce(); NewInvoiceObj.ShowDialog(); }
private void ButtonInvoice_Click(object sender, EventArgs e) { NewInvioce NewInvoiceObj = new NewInvioce(); NewInvoiceObj.ShowDialog(); }