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