예제 #1
0
        public Marks(string studentName, string studentId, string subjectId, RunningLesson runningLessonWindow)
        {
            InitializeComponent();
            this.studentName.Text = studentName;
            this.studentId        = studentId;
            this.subjectId        = subjectId;
            this.parentWindow     = runningLessonWindow;
            this.db = AppContainer.GetDatabaseConnection();

            this.getAllMarks();
        }
예제 #2
0
        private void startLessonButton_Click(object sender, EventArgs e)
        {
            //this.classesList.SelectedItem
            //this.subjectsList.SelectedItem
            // Get class and subject and start the lesson
            RunningLesson startLesson = new RunningLesson(
                this.subjectsList.SelectedItem.ToString(),
                this.classesList.SelectedItem.ToString()
                );

            startLesson.ShowDialog();
            this.Close();
        }