Exemple #1
0
 private void button_jucator_Click(object sender, EventArgs e)
 {
     if (this.textBox_pass.Text == "player" && this.textBox_nume.Text.Trim() != "")
     {
         string nume_user = this.textBox_nume.Text;
         GLOBAL.globalusername = nume_user;
         this.Hide();
         Joc jf = new Joc();
         jf.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Please enter a valid password and name!");
     }
 }
Exemple #2
0
 private void button_jucator_Click(object sender, EventArgs e)
 {
     if (this.textBox_pass.Text == "jucator" && this.textBox_nume.Text.Trim() != "")
     {
         string nume_user = this.textBox_nume.Text;
         GLOBAL.globalusername = nume_user;
         this.Hide();
         Joc jf = new Joc();
         jf.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Introduceti o parola si un nume valid!");
     }
 }