コード例 #1
0
        private void Row_ViewButtonClicked(InvoiceRow sender)
        {
            FrmDetail frm = new FrmDetail
            {
                Invoice = sender.Invoice
            };

            frm.ShowDialog();
            RefreshView();
        }
コード例 #2
0
        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();
        }