Example #1
0
 public void SetCmbbxFromSettings()
 {
     if (useDefaultSettings)
     {
         cmbbx_sessionTime.SelectedItem    = defaultSettings.GetSessionTime().Minutes;
         cmbbx_shortTime.SelectedItem      = defaultSettings.GetShortBreakTime().Minutes;
         cmbbx_longTime.SelectedItem       = defaultSettings.GetLongBreakTime().Minutes;
         cmbbx_presetSettings.SelectedItem = "default";
     }
     else
     {
         cmbbx_sessionTime.SelectedItem    = presetSettings.GetSessionTime().Minutes;
         cmbbx_shortTime.SelectedItem      = presetSettings.GetShortBreakTime().Minutes;
         cmbbx_longTime.SelectedItem       = presetSettings.GetLongBreakTime().Minutes;
         cmbbx_presetSettings.SelectedItem = presetSettings.GetPresetName();
     }
 }