コード例 #1
0
 void Exit()
 {
     StatusBar.ShowInfo("Exit!");
 }
コード例 #2
0
        private async void Inititalize()
        {
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;

            await StatusBar.GetForCurrentView().HideAsync();
        }
コード例 #3
0
 void Settings()
 {
     StatusBar.ShowInfo("Settings!");
 }
コード例 #4
0
 void SaveGame()
 {
     StatusBar.ShowInfo("SaveGame!");
 }
コード例 #5
0
 void LoadGame()
 {
     StatusBar.ShowInfo("LoadGame!");
 }
コード例 #6
0
 void NewGame()
 {
     StatusBar.ShowInfo("New Game!");
 }
コード例 #7
0
        //void LoadGame()
        //{
        //    Console.Clear();
        //    FileStream fs = new FileStream("Game.xml", FileMode.Open, FileAccess.Read);
        //    XmlSerializer xs = new XmlSerializer(typeof(Game));
        //    Game game = xs.Deserialize(fs) as Game;
        //    fs.Close();

        //    game.SetupBoard();
        //    game.Start();
        //    while (game.isAlive)
        //    {
        //        ConsoleKeyInfo pressedButton = Console.ReadKey();
        //        game.Process(pressedButton);
        //    }
        //}

        void Exit()
        {
            Console.Clear();
            StatusBar.ShowInfo("Exit!");
            Console.ReadKey();
        }