Ejemplo n.º 1
0
        public MainWindowViewModel(
            ITimerManager timerManager,
            ISettingManager settingManager,
            ISettingWindowViewModel settingWindowVM,
            IMediator mediator)
        {
            this.gapModel = new TimeGapModel();

            this.timerManager   = timerManager;
            this.settingManager = settingManager;

            this.timerManager.SetTimeGapObject(this.gapModel);

            this.settingWindowVM = settingWindowVM;
            this.mediator        = mediator;

            this.showSettingWindowCommand = new BaseCommand(this.ShowSettingWindow);

            this.RegisterEvents();
        }
Ejemplo n.º 2
0
 public void SetTimeGapObject(TimeGapModel gapModel) => this.gapModel = gapModel;