Exemplo n.º 1
0
        public UserRoleAuthAdminPage()
        {
            InitializeComponent();
            UserRoleAuths = SecurityHelper.GetUserRoleAuths((int)LayoutComponentType.UserRoleAuthorisation);
            if (this.UserRoleAuths == null)
            {
                this.Content = SecurityHelper.GetNoPermissionInfoPanel();
                return;
            }
            btnSave.IsEnabled = this.UserRoleAuths.Count(i => i.WriteRight == true) > 0;
            FillLanguage();

            btnSave.Click   += new RoutedEventHandler(btnSave_Click);
            btnCancel.Click += new RoutedEventHandler(btnCancel_Click);

            //uiUsers.SelectionChanged += new Telerik.Windows.Controls.SelectionChangedEventHandler(uiUsers_SelectionChanged);
            btnNew.Click += new RoutedEventHandler(btnNew_Click);

            RebindUserList();

            uiUsers.IsFilteringEnabled = true;
            uiUsers.KeyUp += new KeyEventHandler(uiUsers_KeyUp);
            uiUsers.OpenDropDownOnFocus = true;
            uiUsers.TextSearchMode      = TextSearchMode.Contains;
            uiUsers.LostFocus          += new RoutedEventHandler(uiUsers_LostFocus);

            DataServiceHelper.ListComponentAsync(null, ListComponentCompleted);
        }
 void FillComboboxData()
 {
     Globals.IsBusy = true;
     DataServiceHelper.ListComponentAsync(null, ListComponentCompleted);
 }