void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //var et = gcMac.GetFocusedDataSource<t_fac_auditmac>(); //if (null == et) return; var vw = new EditView(); vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit; Lanucher.InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { using (var db = new Database()) { var etmac = db.Fetch <t_mac>("select * from t_mac").OrderByDescending(k => k.Id).ToList(); gcMac.DataSource = etmac; } } }
void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //var et = gcMac.GetFocusedDataSource<t_fac_auditmac>(); //if (null == et) return; var vw = new EditView(); vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit; Lanucher.InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { using (var db = new Database()) { var etmac = db.Fetch<t_mac>("select * from t_mac").OrderByDescending(k => k.Id).ToList(); gcMac.DataSource = etmac; } } }