void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var vw = new WareEditView(); vw.EditMode = Web.Core.Enums.EnViewEditMode.New; if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) { btnRefresh_ItemClick(null, null); } }
void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var et = gc.GetFocusedDataSource <t_ware>(); if (et == null) { return; } var vw = new WareEditView(); vw.EditMode = Web.Core.Enums.EnViewEditMode.Edit; vw.GuidKey = et.Guid; if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) { btnRefresh_ItemClick(null, null); } }
void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var et = gc.GetFocusedDataSource<t_ware>(); if (et == null) return; var vw = new WareEditView(); vw.EditMode = Web.Core.Enums.EnViewEditMode.Edit; vw.GuidKey = et.Guid; if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) { btnRefresh_ItemClick(null, null); } }