private void AddIntermediateWeighing_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (var wb_iw = new frmIntermediateWeighing(focused_row.WbillId, null)) { if (wb_iw.ShowDialog() == DialogResult.OK) { RefreshIntermediateWeighing(); } } }
private void barButtonItem10_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { dynamic dr = IntermediateWeighingGridView.GetFocusedRow(); if (dr != null) { using (var wb_iw = new frmIntermediateWeighing(focused_row.WbillId, dr.Id)) { if (wb_iw.ShowDialog() == DialogResult.OK) { RefreshIntermediateWeighing(); } } } }