private void ADD_Click(object sender, EventArgs e) { StudentResultClass SR = new StudentResultClass(); string Rubric = RubricLSelection.GetItemText(RubricLSelection.SelectedItem); string assessment = AssessmentSelection.GetItemText(AssessmentSelection.SelectedItem); string student = StudentName1.GetItemText(StudentName1.SelectedItem); SR.ADD(student, assessment, Rubric, EvaluateDate.Value); StudentResultRecord.DataSource = null; RubricLSelection.Text = ""; AssessmentSelection.Text = ""; StudentName1.Text = ""; EvaluateDate.ResetText(); My_Own_Load(); }
private void Save_Click(object sender, EventArgs e) { StudentAttendenceClass SR = new StudentAttendenceClass(); string status = AttendenceAtatus.GetItemText(AttendenceAtatus.SelectedItem); string Attendence = AttendencedateComobox.Text; string student = StudentName1.GetItemText(StudentName1.SelectedItem); SR.Edit(globalindex, globalindex2, student, Attendence, status); StudentAttendenceRecord.DataSource = null; AttendenceAtatus.Text = ""; AttendencedateComobox.Text = ""; StudentName1.Text = ""; StudentAttendence_Load(sender, e); ADD.Visible = true; }
private void Save_Click(object sender, EventArgs e) { string Rubric = RubricLSelection.GetItemText(RubricLSelection.SelectedItem); string assessment = AssessmentSelection.GetItemText(AssessmentSelection.SelectedItem); string assessmentCom = AssessmentSel.GetItemText(AssessmentSel.SelectedItem); string stdentName = StudentName1.GetItemText(StudentName1.SelectedItem); StudentResultClass Rub = new StudentResultClass(); Rub.Edit(globalindex, globalindex2, stdentName, assessment, Rubric, EvaluateDate.Value); StudentResultRecord.DataSource = null; AssessmentSel.Text = ""; RubricLSelection.Text = ""; AssessmentSelection.Text = ""; StudentName1.Text = ""; EvaluateDate.ResetText(); My_Own_Load(); ADD.Visible = true; }