示例#1
0
 private void buttonLoadGame_Click(object sender, EventArgs e)
 {
     try
     {
         string       wczytane     = File.ReadAllText(@"Save");
         string[]     dane         = wczytane.Split('*');
         FormMainGame formMainGame = new FormMainGame(int.Parse(dane[0]), int.Parse(dane[1]));
         formMainGame.Show();
     }
     catch (Exception)
     {
         MessageBox.Show("Wczytanie gry nie powiodło się.", "LoadError");
     }
 }
示例#2
0
        private void buttonStartGame_Click(object sender, EventArgs e)
        {
            FormMainGame formMainGame = new FormMainGame();

            formMainGame.Show();
        }