Exemplo n.º 1
0
        private void btnResume_Click(object sender, EventArgs e)
        {
            //Console.WriteLine(CountTextFileLines(path).ToString());
            ResumeGame();
            //foreach (string line in DataRetr)
            //    Console.WriteLine(line);
            frmGameEngine f = new frmGameEngine(DataRetr);

            f.ShowDialog();
            //Console.ReadLine();
        }
Exemplo n.º 2
0
 private void btnGo_Click(object sender, EventArgs e)
 {
     this.Hide();
     player1Name = lblPlyr1Nm.Text;
     player2Name = lblPlyr2Nm.Text;
     if (player1Name != "" && player2Name != "")
     {
         frmGameEngine f = new frmGameEngine(player1Name, player2Name);
         f.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Enter all players names");
     }
 }
Exemplo n.º 3
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            frmGameEngine f = new frmGameEngine();

            f.ShowDialog();
        }