private void SectionBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { Section = SectionBox.SelectedItem.ToString(); UserSettings.Section = Section; CommandModel.SetSectionContext(Section); updateText(); }
public static void SetUp() { PrepareList(); UserName = Settings.UserName; Section = Settings.Section; BackgroundString = Settings.Background; CommandModel.SetSectionContext(Settings.Section); if (!string.IsNullOrWhiteSpace(UserName)) { BackgroundUpdate(); PrimaryColor = Settings.PrimaryColor; SecondaryColor = Settings.SecondaryColor; if (Settings.UsesLightTheme == "False") { UseDarkTheme = false; } else { UseDarkTheme = true; } } else { BackgroundString = AppSettings.ImageUri.ToString(); Background = AppSettings.ImageUri; BackgroundBitmap = new BitmapImage(Background); PrimaryColor = "blue"; SecondaryColor = "red"; UseDarkTheme = true; } }
private void Section_SelectionChanged(object sender, SelectionChangedEventArgs e) { CommandModel.SetSectionContext(Section.SelectedItem.ToString()); CheckExecutable(); }