Example #1
0
 /// <summary>
 ///     Creates an instance of <see cref="RootViewModel" />
 /// </summary>
 /// <param name="modeFactory">
 ///     An instance of <see cref="IApplicationModeViewModelFactory" /> to use
 /// </param>
 /// <param name="interactionService">
 ///     An instance of <see cref="IInteractionService" /> to use
 /// </param>
 /// <param name="stateManager">
 ///     An instance of <see cref="IApplicationStateManager" /> to use
 /// </param>
 /// <param name="soundNotificationsService"></param>
 public RootViewModel(IApplicationModeViewModelFactory modeFactory,
                      IInteractionService interactionService,
                      IApplicationStateManager stateManager, ISoundNotificationsService soundNotificationsService)
 {
     this._modeFactory          = modeFactory;
     this._interactionService   = interactionService;
     this._stateManager         = stateManager;
     _soundNotificationsService = soundNotificationsService;
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 public WidgetRightBorderBehavior()
 {
     _soundNotificationsService        = ServiceLocator.Current.GetInstance(typeof(ISoundNotificationsService)) as ISoundNotificationsService;
     _globalDefectAcknowledgingService = ServiceLocator.Current.GetInstance(typeof(IGlobalDefectAcknowledgingService)) as IGlobalDefectAcknowledgingService;
 }