Ejemplo n.º 1
0
 private void SectionBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     Section = SectionBox.SelectedItem.ToString();
     UserSettings.Section = Section;
     CommandModel.SetSectionContext(Section);
     updateText();
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 private void Section_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     CommandModel.SetSectionContext(Section.SelectedItem.ToString());
     CheckExecutable();
 }