/// <summary> /// Window constructor. /// </summary> public Settings(IMainViewModel host, double currentOpacity, Brush currentTextColor, int workTime, int breakTime, int breakLongTime, bool soundEfects, double shadowOpacity, bool countBackwards) { InitializeComponent(); this.DataContext = this; _host = host; _useWhiteText = true; _soundEfects = soundEfects; _clockOpacity = currentOpacity; _saveSettings = new SaveSettings(this); _useWhiteText = (currentTextColor.ToString() == Brushes.White.ToString()); _breakTime = breakTime; _breakLongTime = breakLongTime; _workTime = workTime; _shadowOpacity = shadowOpacity; _countBackwards = countBackwards; MouseLeftButtonDown += Settings_MouseLeftButtonDown; _itemRepository = new ItemRepository(); Loaded += Settings_Loaded; }