void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var vw = new NewView(); vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.New; Lanucher.InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(sender, e); } }
void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var et = gridControlEx1.GetFocusedDataSource <t_role>(); if (null == et) { return; } var vw = new NewView(); vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit; vw.GuidKey = et.Guid; Lanucher.InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(sender, e); } }
void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var et = gridControlEx1.GetFocusedDataSource<t_role>(); if (null == et) return; var vw = new NewView(); vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit; vw.GuidKey = et.Guid; Lanucher.InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(sender, e); } }