Exemple #1
0
 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();
         }
     }
 }
Exemple #2
0
        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();
                    }
                }
            }
        }