示例#1
0
        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;
            }
        }
示例#2
0
        private void btn10_Click(object sender, RoutedEventArgs e)
        {
            XWareNews page = new XWareNews();

            NavigationService.Navigate(page);
        }