void btnEdit_Click(object sender, RoutedEventArgs e) { if (CheckProjectSingle == null) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } CheckProjectSetForm form = new CheckProjectSetForm(FormTypes.Edit, CheckProjectSingle.CHECKPROJECTID); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 400.0; form.MinHeight = 300.0; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }
void btnNew_Click(object sender, RoutedEventArgs e) { CheckProjectSetForm form = new CheckProjectSetForm(FormTypes.New, ""); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 400.0; form.MinHeight = 300.0; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }