Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            label3.Text = "";

            UsersTableManager manager = new UsersTableManager();
            User user = manager.GetUser(this.textBox_username.Text, this.textBox_password.Text);

            if (user != null)
            {
                if (user.Szerepkor == "Tanulo")
                {
                    User.CurrentUser = user;
                    FormTanuloSzerepkor formTanuloSzerepkor = new FormTanuloSzerepkor();
                    this.Hide();
                    formTanuloSzerepkor.ShowDialog();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Hozzáférés megtagadva!");
                }
            }
            else
            {
                label3.Text           = "Sikertelen bejelentkezés!";
                textBox_password.Text = "";
                textBox_username.Text = "";
            }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormTanuloSzerepkor formSzerepkor = new FormTanuloSzerepkor();

            this.Hide();
            formSzerepkor.ShowDialog();
            this.Close();
        }
Example #3
0
 private void GetNextQuestion()
 {
     if (this.currentQuestion >= this.list.Count - 1)
     {
         // VÉGZETT
         FormTanuloSzerepkor newForm = new FormTanuloSzerepkor();
         newForm.Show();
         this.Hide();
     }
     else
     {
         this.currentQuestion++;
     }
 }
Example #4
0
 private void GetNextQuestion()
 {
     if (this.currentQuestion >= this.list.Count - 1)
     {
         //Feladatsor vége
         FormTanuloSzerepkor newForm = new FormTanuloSzerepkor();
         newForm.Show();
         this.Hide();
     }
     else
     {
         //Következő kérdés
         this.currentQuestion++;
     }
 }