private void barButtonItem7_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var df = new frmWaybillSvcDet(_db, null, wb); if (df.ShowDialog() == DialogResult.OK) { RefreshDet(); } }
private void EditMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dr = WaybillDetInGridView.GetRow(WaybillDetInGridView.FocusedRowHandle) as GetWaybillDetIn_Result; if (dr != null) { if (dr.PosId > 0) { using (var wb_det = new frmWayBillDetIn(_db, dr.PosId, wb)) { wb_det.ShowDialog(); } } else { using (var svc_det = new frmWaybillSvcDet(_db, dr.PosId * -1, wb)) { svc_det.ShowDialog(); } } RefreshDet(); } }