protected override void EditBtn_Click(object sender, EventArgs e) { Invoice currentInvoice = (Invoice)dataGridView1.CurrentRow.DataBoundItem; if (currentInvoice == null) { return; } var frm = new FrmInvoice(currentInvoice); frm.Listener = this; frm.ShowDialog(); }
private void createInvoiceMenuItem_Click(object sender, EventArgs e) { var frm = new FrmInvoice(); frm.ShowDialog(); }