コード例 #1
0
ファイル: Adder.cs プロジェクト: cavidan888/School-App
        private void button4_Click(object sender, EventArgs e)
        {
            var a = ClassName.Text;

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

            choose.Show();
        }
コード例 #2
0
ファイル: Adder.cs プロジェクト: cavidan888/School-App
        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();
        }
コード例 #3
0
ファイル: Adder.cs プロジェクト: cavidan888/School-App
        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();
        }
コード例 #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;
            }
        }