Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     bArray[0] = Int32.TryParse(textBox1.Text, out membernr);
     if (textBox2.Text == textBox8.Text)
     {
         password = textBox2.Text;
         bArray[1] = true;
     }
     bArray[4] = Int32.TryParse(textBox5.Text, out age);
     bArray[5] = Int32.TryParse(textBox6.Text, out height);
     bArray[6] = Int32.TryParse(textBox7.Text, out weight);
     bool b = true;
     for (int i = 0; i < bArray.Length; i++)
     {
         if (bArray[i] == false)
         {
             b = false;
         }
     }
     if (b)
     {
         addMemberToFile();
         this.Close();
         login login = new login();
         login.Show();
     }
     else
     {
         var form = new popup();
         form.Show();
     }
 }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Hide();
     login logIn = new login();
     logIn.Show();
 }