Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
            PotentialStudentForm f = new PotentialStudentForm();

            f.Show();
        }
Esempio n. 2
0
        private void buttonPotentialStudent_Click(object sender, EventArgs e)
        {
            PotentialStudentForm f = new PotentialStudentForm();

            this.Hide();
            f.Show();
            //this.Show();
        }
Esempio n. 3
0
        private void btConfim_Click(object sender, EventArgs e)
        {
            PotentialStudentDAL potentialStudentDAL = new PotentialStudentDAL();

            potentialStudentDAL.ConnectToDatabase();
            try
            {
                if (potentialStudentDAL.InsertPotentialStudent(textboxPotentialStudentID.Text, textboxPotentialStudentName.Text, int.Parse(textboxPotentialStudentInputScore.Text), textboxPotentialStudentPhoneNumber.Text, int.Parse(textboxPotentialStudentAppointmentCount.Text), dropboxStatus.Text, textboxPotentialStudentAddress.Text, dropboxPotentialStudentGender.Text))
                {
                    MessageBox.Show("Thêm học viên thành công!!!");
                    this.Hide();
                    PotentialStudentForm f = new PotentialStudentForm();
                    f.Show();
                }
            }
            catch (Exception) {
                MessageBox.Show("Thất bại, Kiểm tra lại dữ liệu nhập vào!!!");
            };
        }