Exemplo 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);
        }
Exemplo 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();
        }
Exemplo n.º 3
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 ();
        }
Exemplo 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);
        }