public MainWindow(IMainViewModel viewModel, MotivationalThemeSettings settings, PomodoroEngineSettings baseSettings, IPomodoroRepository pomodoroRepository, ISettings globalSettings) : base(viewModel)
        {
            ViewModel           = viewModel;
            _settings           = settings;
            _baseSettings       = baseSettings;
            _pomodoroRepository = pomodoroRepository;
            _globalSettings     = globalSettings;
            InitializeComponent();
            globalSettings.PropertyChanged += _globalSettings_PropertyChanged;

            DataContext = this;

            // Initialize Pomodoro session
            ResetPomodoroPeriod();

            ViewModel.Engine.PropertyChanged     += Engine_PropertyChanged;
            ViewModel.Engine.OnPomodoroCompleted += Engine_OnPomodoroCompleted;
            ViewModel.Engine.OnStarted           += EngineOnOnStarted;

            UpdateCompletedPomodoroCount();

            UpdateTime();
        }
 public MotivationalThemeSettingsWindow(MotivationalThemeSettings settings)
 {
     InitializeComponent();
     DataContext = settings;
 }