private void btnReset_Click(object sender, RoutedEventArgs e) { tb1.Text = _defaultSettings; SaveSettings(tb1.Text); _todLookup = MainMain.BuildTimeOfDayLookup(tb1.Text); btnReload.IsEnabled = false; }
public MainWindow() { InitializeComponent(); _multiplier = (slider1.Maximum - slider1.Minimum) / (slider2.Maximum - slider2.Minimum); _offset = slider2.Minimum - (slider1.Minimum / _multiplier); _timer.Tick += t_Elapsed; _timer.Start(); tb1.Text = LoadSettings(); _todLookup = MainMain.BuildTimeOfDayLookup(tb1.Text); btnReload.IsEnabled = false; _finishedLoading = true; }