private void editToolStripMenuItem_Click(object sender, EventArgs e) { int selectedRowIndex = dgvInvoiceData.SelectedRows[0].Index; DataRow selectedRow = dtInvoiceData.Rows[selectedRowIndex]; CreateInvoice createInvoice = new CreateInvoice(selectedRow); createInvoice.ShowDialog(); }
private void btncheckin_Click(object sender, EventArgs e) { CreateInvoice CI = new CreateInvoice(); CI.ShowDialog(); }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { CreateInvoice createInvoice = new CreateInvoice(dtInvoiceData); createInvoice.ShowDialog(); }