private void btn5_Click(object sender, RoutedEventArgs e) { NavSettings.Default.slot = 4; XSC64TL page = new XSC64TL(); NavigationService.Navigate(page); }
private void btn4_Click(object sender, RoutedEventArgs e) { string json = File.ReadAllText(System.IO.Path.Combine(SavePath, "ncxCoreMainMenu.json")); Menu menu = JsonConvert.DeserializeObject <Menu>(json); switch (menu.Featured) { case "ncxnewsplus": XWareNews page2 = new XWareNews(); NavigationService.Navigate(page2); break; case "c64titleloader": XSC64TL page3 = new XSC64TL(); NavigationService.Navigate(page3); break; case "coreupdater": XWareUpdater page5 = new XWareUpdater(); NavigationService.Navigate(page5); break; default: btn4.Content = "An error has occured while loading the featured program."; break; } }