Exemplo n.º 1
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            SysUserRoleSet UserRole = new SysUserRoleSet(tmpUser, null);
            EntityBrowser  browser  = new EntityBrowser(UserRole);

            browser.MinHeight        = 300;
            browser.MinWidth         = 650;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
        }
Exemplo n.º 2
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (UserRole == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }
            SysUserRoleSet UserRoleForm = new SysUserRoleSet(tmpUser, UserRole);
            EntityBrowser  browser      = new EntityBrowser(UserRoleForm);

            browser.MinHeight        = 640;
            browser.MinWidth         = 500;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
        }