void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var vw = new MaterialInStockAdd(); vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.New; if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }
void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var et = gcUnAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_InStockMatMaster>(); if (null == et) return; var vw = new MaterialInStockAdd(); vw.Ent = et; vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.Edit; if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }