Ejemplo n.º 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (selectedSubId > 0 && selectedSectionId > 0)
     {
         addGradeStudent frm = new addGradeStudent(selectedSectionId, selectedSubId, teacherId);
         frm.ShowDialog();
         refreshGrid();
     }
 }
Ejemplo n.º 2
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         addGradeStudent frm = new addGradeStudent(selectedSectionId, selectedSubId, teacherId,
                                                   listView1.SelectedItems[0].SubItems[0].Text,
                                                   listView1.SelectedItems[0].SubItems[1].Text,
                                                   double.Parse(listView1.SelectedItems[0].SubItems[2].Text),
                                                   double.Parse(listView1.SelectedItems[0].SubItems[3].Text),
                                                   double.Parse(listView1.SelectedItems[0].SubItems[4].Text),
                                                   double.Parse(listView1.SelectedItems[0].SubItems[5].Text),
                                                   double.Parse(listView1.SelectedItems[0].SubItems[6].Text));
         frm.ShowDialog();
         refreshGrid();
     }
     else
     {
         MessageBox.Show("Please select the row you wanted to edit");
     }
 }