private void Row_ViewButtonClicked(InvoiceRow sender) { FrmDetail frm = new FrmDetail { Invoice = sender.Invoice }; frm.ShowDialog(); RefreshView(); }
private void grdItems_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } Invoice invoice = visibleInvoices[e.RowIndex]; FrmDetail frm = new FrmDetail { Invoice = invoice }; frm.ShowDialog(); RefreshView(); }