Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string            id  = textBox1.Text;
            Student_functions obj = new Student_functions();

            obj.deletestudent(id);
            MessageBox.Show("Student Has Been Deleted");
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string            enroll = textBox1.Text;
            Student_functions obj    = new Student_functions();

            string[] student = obj.searchEnroll(enroll);
            if (student != null)
            {
                ListViewItem item = new ListViewItem(student[0]);
                item.SubItems.Add(student[1]);
                this.listView1.Items.Add(item);
            }
        }
        private void ADD_Click(object sender, EventArgs e)
        {
            string name, enroll, degree, semester, cgpa, uni;

            name     = text_name.Text;
            enroll   = text_id.Text;
            degree   = text_degree.Text;
            semester = text_semester.Text;
            cgpa     = text_cgpa.Text;
            uni      = text_university.Text;
            Student_functions obj = new Student_functions();

            obj.enterstudent(name, enroll, degree, semester, cgpa, uni);
            MessageBox.Show("Student Added");
        }