Example #1
0
        public MainViewModel(IUnityContainer iocContainer)
        {
            this.iocContainer  = iocContainer;
            this.Notifications = new ObservableCollection <NotificationViewModel>();
            this.notificationHistoryService = iocContainer.Resolve <INotificationHistoryService>();
            this.DismissAll      = new SimpleCommand(() => true, this.DismissAllNotifications);
            this.OpenSettings    = new SimpleCommand(() => true, this.DisplaySettings);
            this.ExitApplication = new SimpleCommand(() => true, this.ExitRunningApplication);
            this.windowManager   = iocContainer.Resolve <IWindowManager>();

            this.ReapplySettings();
        }
Example #2
0
 public NotificationHistoryController(ILogger <NotificationHistoryController> loggerFactory, INotificationHistoryService service) : base(loggerFactory)
 {
     _service = service;
 }