예제 #1
0
        private void repositoryEditScore_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            int id_Score = int.Parse(gvScores.GetFocusedRowCellValue("id_Score").ToString());
            FRM_Add_EditStudyBook frm = new FRM_Add_EditStudyBook(id_Score, "Edit");

            frm.ShowDialog();
            loadScoresForOneStudent(int.Parse(labelControlIdStudent.Text));
        }
예제 #2
0
        void AddSubjectNameAndScore()
        {
            int id_Student            = int.Parse(labelControlIdStudent.Text);
            FRM_Add_EditStudyBook frm = new FRM_Add_EditStudyBook(id_Student, "Add");

            frm.ShowDialog();
            loadScoresForOneStudent(id_Student);
        }