Ejemplo n.º 1
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Permission == null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDER"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
     SysPermissionForms addForm = new SysPermissionForms(FormTypes.Browse, Permission.PERMISSIONID);
     EntityBrowser browser = new EntityBrowser(addForm);
     browser.MinHeight = 350;
     browser.FormType = FormTypes.Browse;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
Ejemplo n.º 2
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     SysPermissionForms addForm = new SysPermissionForms(FormTypes.New);
     EntityBrowser browser = new EntityBrowser(addForm);
     browser.MinWidth = 450;
     browser.MinHeight = 350;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) =>{});
 }