private void gridViewInvoices_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { if (e.Clicks == 2 || e.Column.Name == col_Edit.Name) { uint invID = (gridViewInvoices.GetRow(e.RowHandle) as InvoiceCatalogModel).InvoiceID; var manager = InvoiceManager.CreateEdit(invID); using (XF_InvoiceNewEdit form = new XF_InvoiceNewEdit(manager)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { LoadInvoices(); } } } }
private void gridViewInvoices_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { if (e.Clicks == 2 || e.Column.Name == col_Edit.Name) { uint invID = (gridViewInvoices.GetRow(e.RowHandle) as InvoiceCatalogModel).InvoiceID; var manager = InvoiceManager.CreateEdit(invID); using (XF_InvoiceNewEdit form = new XF_InvoiceNewEdit(manager)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { LoadInvoices(); } } } }