Esempio n. 1
0
        /// <summary>
        /// Initiates the loading.
        /// </summary>
        /// <returns>A <see cref="System.Windows.UIElement"/></returns>
        public UIElement InitiateLoading()
        {
            Logger.Debug("Instantiating the Splash Screen.");
            _splashScreen = _container.Resolve <SplashScreen> ();

            LayoutRoot = new Grid
            {
                VerticalAlignment   = VerticalAlignment.Stretch,
                HorizontalAlignment = HorizontalAlignment.Stretch
            };

            var shell = _container.Resolve <Shell>();

            new ConfigurationBehaviorService().Watch(shell);
            LayoutRoot.Children.Add(shell);
            LayoutRoot.Children.Add(_splashScreen);

            Logger.Debug("Setting the Splash Screen as the Root Visual");
            Application.Current.RootVisual = LayoutRoot;

            Logger.Debug("Initializing the client security manager.");
            _currentUserPermissionService.RegisterForPermissions(OnUserPermissionsChanged, true);
            _currentUserPermissionService.InitializeUserSession();

            return(LayoutRoot);
        }
Esempio n. 2
0
        public EmergencyAccessViewModel(
            ICurrentUserPermissionService currentUserPermissionService,
            IEmergencyAccessService emergencyAccessService,
            IUserDialogService userDialogService,
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory)
            : base(accessControlManager, commandFactory)
        {
            _currentUserPermissionService = currentUserPermissionService;
            _emergencyAccessService       = emergencyAccessService;
            _userDialogService            = userDialogService;
            _currentUserPermissionService.RegisterForPermissions(OnUserPermissionsChanged);

            var commandfactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory);

            ExerciseEmergencyAccessCommand = commandfactoryHelper.BuildDelegateCommand(
                () => ExerciseEmergencyAccessCommand, ExecuteExerciseEmergencyAccess, CanExecuteExerciseEmergencyAccess);

            EvaluateEmergencyAccessClaims();
        }
        public EmergencyAccessViewModel(
            ICurrentUserPermissionService currentUserPermissionService,
            IEmergencyAccessService emergencyAccessService,
            IUserDialogService userDialogService,
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _currentUserPermissionService = currentUserPermissionService;
            _emergencyAccessService = emergencyAccessService;
            _userDialogService = userDialogService;
            _currentUserPermissionService.RegisterForPermissions ( OnUserPermissionsChanged );

            var commandfactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            ExerciseEmergencyAccessCommand = commandfactoryHelper.BuildDelegateCommand (
                () => ExerciseEmergencyAccessCommand, ExecuteExerciseEmergencyAccess, CanExecuteExerciseEmergencyAccess );

            EvaluateEmergencyAccessClaims ();
        }
Esempio n. 4
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            RegisterServices();

            RegisterQuickPickers();
            RegisterPatientWorkspaceScreens();
            RegisterFrontDeskDashboardScreens();
            RegisterClinicianDashboardScreens();
            RegisterInteroperabilityScreens();
            RegisterCdsRuleEditorScreens();

            RegisterInteroperabilityWorkspaceScreens();
            RegisterSearchScreens();

            RegisterActivityViews();

            RegisterRuleCollections();

            RegisterDirectMessageCenterScreens();

            _currentUserPermissionService.RegisterForPermissions(UserInitialized);
        }