private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (var frm = new frmWBInventoryDet(_db, null, wb)) { if (frm.ShowDialog() == DialogResult.OK) { RefreshDet(); } } }
private void EditMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { dynamic dr = InventoryDetGridView.GetFocusedRow(); using (var frm = new frmWBInventoryDet(_db, dr.PosId, wb)) { if (frm.ShowDialog() == DialogResult.OK) { RefreshDet(); } } }