Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            var a = ClassName.Text;

            ClassController.Create(a);
            Choose choose = new Choose();

            choose.Show();
        }
Beispiel #2
0
        private void personAdder_Click(object sender, EventArgs e)
        {
            var a = persName.Text;
            var b = persSurName.Text;
            var c = int.Parse(persAge.Text);

            StudentController.Create(a, b, c);
            Choose choose = new Choose();

            this.Hide();
            choose.Show();
        }
Beispiel #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            var a = teacherName.Text;
            var b = teacherSurName.Text;
            var c = int.Parse(teacherAge.Text);

            TeacherController.Create(a, b, c);

            Choose choose = new Choose();

            this.Hide();
            choose.Show();
        }
Beispiel #4
0
        private void login_Click(object sender, EventArgs e)
        {
            var adminUsName     = admin.UserN;
            var adminUsPass     = admin.UserP;
            var istifadeciAd    = username.Text;
            var istifadeciParol = password.Text;


            if (adminUsName == istifadeciAd && adminUsPass == istifadeciParol)
            {
                Choose choose = new Choose();
                this.Hide();
                choose.Show();
            }
            else
            {
                MessageBox.Show("You are not Admin");
                username.Text = string.Empty;
                password.Text = string.Empty;
            }
        }