void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var vw = new AreaEditView(); 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_area>(); if (et == null) { return; } var vw = new AreaEditView(); 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_area>(); if (et == null) return; var vw = new AreaEditView(); 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); } }