private void button1_Click(object sender, EventArgs e) { profile obj = new profile(); string output = obj.max(); string[] arr = output.Split(' '); //listView1.Items.Add("Name " + "Enroll " + "semester " + "dept " + "uni " + "cgpa "); for (int i = 0; i < arr.Length; i++) { listView1.Items.Add(arr[i]); } }
private void button1_Click(object sender, EventArgs e) { if (sem.Text == "" || dept.Text == "") { MessageBox.Show("please fill all fields"); } else { profile obj = new profile(); obj.attendance(dept.Text, sem.Text); } }
private void button1_Click(object sender, EventArgs e) { if (id.Text == "") { MessageBox.Show("nothing searched"); } else { //listView1.Clear(); profile obj = new profile(); obj.delete(id.Text); } }
private void button1_Click(object sender, EventArgs e) { profile obj = new profile(); if (name.Text == "" || id.Text == "" || sem.Text == "" || dept.Text == "" || uni.Text == "" || cgpa.Text == "") { MessageBox.Show("Please fill all fields"); } else { obj.createprofile(name.Text, id.Text, sem.Text, dept.Text, uni.Text, float.Parse(cgpa.Text), "absent"); } }
private void button1_Click(object sender, EventArgs e) { if (sem.Text == "" || dept.Text == "") { MessageBox.Show("please fill all fields"); } else { listView1.Clear(); profile obj = new profile(); string search = obj.search(dept.Text, sem.Text); string[] arr = search.Split(' '); //listView1.Items.Add("Name " + "Enroll " + "semester " + "dept " + "uni " + "cgpa "); for (int i = 0; i < arr.Length; i++) { listView1.Items.Add(arr[i]); } } }
private void button1_Click(object sender, EventArgs e) { listView1.Clear(); if (dept.Text == "" || sem.Text == "") { MessageBox.Show("Nothing Searched"); } else { profile obj = new profile(); string output = obj.viewAttendance(dept.Text, sem.Text); string[] arr = output.Split(' ', '\n'); //listView1.Items.Add("Name " + "Enroll " + "semester " + "dept " + "uni " + "cgpa "); for (int i = 0; i < arr.Length; i++) { listView1.Items.Add(arr[i]); } } }