void barBtnNew_ItemClick(object sender, ItemClickEventArgs e) { var vw = new MaterialIvtCheckView(); vw.EditMode = EnViewEditMode.New; if (vw.ShowDialog() == DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }
void barBtnEdt_ItemClick(object sender, ItemClickEventArgs e) { var et = gcInStockMarter.GetFocusedDataSource<UltraDbEntity.T_ERP_MaterialCheckMaster>(); var vw = new MaterialIvtCheckView(); vw.EditMode = EnViewEditMode.Edit; vw.Ent = et; if (vw.ShowDialog() == DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }