예제 #1
0
        //private void OnSettingsWindowLoaded(object sender, RoutedEventArgs e)
        //{
        //    //applyButton.Click +=
        //}

        private void SetTimeMinutes()
        {
            ConfigurationModel configuration = ConfigurationModel.GetInstance();

            leftTimeMinute.Content  = (int)configuration.LeftTime.TotalMinutes;
            breakTimeMinute.Content = (int)configuration.BreakTime.TotalMinutes;
        }
예제 #2
0
        private void ApplyButtonClick(object sender, RoutedEventArgs e)
        {
            TimeSpan leftTime  = TimeSpan.FromMinutes(Convert.ToDouble(leftTimeMinute.Content));
            TimeSpan breakTime = TimeSpan.FromMinutes(Convert.ToDouble(breakTimeMinute.Content));

            ConfigurationModel configuration = ConfigurationModel.GetInstance();

            configuration.LeftTime  = leftTime;
            configuration.BreakTime = breakTime;
        }
예제 #3
0
 public MainViewModel() : this(ConfigurationModel.GetInstance())
 {
 }
예제 #4
0
 public SettingsViewModel() : this(ConfigurationModel.GetInstance())
 {
 }