예제 #1
0
 private void Log_In_Click(object sender, EventArgs e)
 {
     if (Program.pc.registered() == false)
     {
         Program.pc.checkUser.setName("user");
         Program.pc.checkUser.setPass("123");
         if (Program.pc.player.checkData(Program.pc.checkUser))
         {
             Form JoinTournament = new JoinTournament();
             this.Close();
             JoinTournament.Show();
         }
         else
         {
             textBox3.Text = "Wrong data attempts " + (3 - Program.pc.player.getLogAttempts() + " remaining");
         }
     }
     else
     {
         if (Program.pc.player.checkData(Program.pc.registeredUser))
         {
             Form JoinTournament = new JoinTournament();
             this.Close();
             JoinTournament.Show();
         }
         else
         {
             textBox3.Text = "Wrong data attempts " + (3 - Program.pc.player.getLogAttempts() + " remaining");
         }
     }
 }
예제 #2
0
        private void ExitTournament_Click_1(object sender, EventArgs e)
        {
            Form JoinTournament = new JoinTournament();

            this.Close();
        }