Ejemplo n.º 1
0
 public HibernationPromptViewModel(
     ILog log,
     IHibernationService hibernationService,
     IEventAggregator eventAggregator) : base(eventAggregator)
 {
     this.log = log;
     this.hibernationService = hibernationService;
 }
Ejemplo n.º 2
0
        public HibernationWarningViewModel(
            IActionLog log,
            IHibernationService hibernationService,
            ISettings settings,
            DispatcherTimer timer,
            IEventAggregator eventAggregator) : base(eventAggregator)
        {
            this.log = log;
            this.hibernationService = hibernationService;
            this.settings           = settings;

            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick    += Timer_Tick_UpdateWindow;
            timer.Start();
        }