private void submit_Click(object sender, EventArgs e) { string enroll = deleteEnroll.Text; studentProfile obj = new studentProfile(); obj.deleteRecord(enroll); }
private void button1_Click(object sender, EventArgs e) { studentProfile obj = new studentProfile(); string name = nameFeild.Text.ToLower(); string[] result = obj.checkRecord(name); for (int j = 0; j < result.Length; j++) { string[] words = result[j].Split(' '); ListViewItem objL = new ListViewItem(words[0]); objL.SubItems.Add(words[1]); objL.SubItems.Add(words[2]); objL.SubItems.Add(words[3]); objL.SubItems.Add(words[4]); objL.SubItems.Add(words[5]); listView.Items.Add(objL); } }
private void button1_Click(object sender, EventArgs e) { studentProfile obj = new studentProfile(); int semNo = Convert.ToInt32(deptFeild.Text); string[] result = obj.checkSemester(semNo); for (int j = 0; j < result.Length; j++) { string[] words = result[j].Split(' '); ListViewItem objL = new ListViewItem(words[1]); objL.SubItems.Add(words[2]); objL.SubItems.Add(words[3]); objL.SubItems.Add(words[4]); objL.SubItems.Add(words[5]); objL.SubItems.Add(words[6]); objL.SubItems.Add(words[0]); listViewDept.Items.Add(objL); } }
private void button4_Click(object sender, EventArgs e) { this.Hide(); toppers obj1 = new toppers(); obj1.Show(); studentProfile obj = new studentProfile(); string[] result1 = obj.topers(); for (int j = 0; j < result1.Length; j++) { string[] words = result1[j].Split(' '); ListViewItem objL = new ListViewItem(words[0]); objL.SubItems.Add(words[1]); objL.SubItems.Add(words[2]); objL.SubItems.Add(words[3]); objL.SubItems.Add(words[4]); obj1.listViewTop.Items.Add(objL); // listViewTop.Items.Add(objL); } }
private void button1_Click(object sender, EventArgs e) { if (getName.Text == "" || getEnroll.Text == "" || getClass.Text == "" || getSem.Text == "" || getGpa.Text == "") { MessageBox.Show("please fill all feilds"); } else { int sem = 0; string name = getName.Text.ToLower(); string enroll = getEnroll.Text; string classN = getClass.Text.ToLower(); sem = Convert.ToInt32(getSem.Text); float gpa = float.Parse(getGpa.Text); string status = " "; Boolean check = statusP.Checked; if (check == true) { status = "present"; } else { status = "absent"; } studentProfile obj = new studentProfile(); obj.enterStudent(name, enroll, classN, sem, gpa, status); } }