void Exit() { StatusBar.ShowInfo("Exit!"); }
private async void Inititalize() { DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape; await StatusBar.GetForCurrentView().HideAsync(); }
void Settings() { StatusBar.ShowInfo("Settings!"); }
void SaveGame() { StatusBar.ShowInfo("SaveGame!"); }
void LoadGame() { StatusBar.ShowInfo("LoadGame!"); }
void NewGame() { StatusBar.ShowInfo("New Game!"); }
//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(); }