private void InitializeUI()
        {
            bool isGroupManagementAccessible = IdentityUtility.IsFormAccessible(FormNames.GROUP_MANAGEMENT);
            bool isUserManagementAccessible  = IdentityUtility.IsFormAccessible(FormNames.USER_MANAGEMENT);

            this.CanGroupManagement = isGroupManagementAccessible ? Visibility.Visible : Visibility.Collapsed;
            this.CanUserManagement  = isUserManagementAccessible ? Visibility.Visible : Visibility.Collapsed;
        }
Esempio n. 2
0
        private void InitializeUI()
        {
            bool isNewProposalAccessible     = IdentityUtility.IsFormAccessible(FormNames.NEW_PROPOSAL);
            bool isAddQuotationAccessible    = IdentityUtility.IsFormAccessible(FormNames.ADD_QUOTATION);
            bool isSearchQuotationAccessible = IdentityUtility.IsFormAccessible(FormNames.SEARCH_QUOTATION);

            this.CanNewProposal     = isNewProposalAccessible ? Visibility.Visible : Visibility.Collapsed;
            this.CanAddQuotation    = isAddQuotationAccessible ? Visibility.Visible : Visibility.Collapsed;
            this.CanSearchQuotation = isSearchQuotationAccessible ? Visibility.Visible : Visibility.Collapsed;
        }