Beispiel #1
0
 /// <summary>
 /// Установить оценку для студента
 /// </summary>
 /// <param name="student"></param>
 public void StudentSetGrade(StudentRatingModel student)
 {
     RatingProvider.RateStudent(
         student.Student.Id,
         Subject.Id,
         student.Grade);
 }
Beispiel #2
0
 public void SetStudentRating(StudentRatingModel model)
 {
     studentName.Text = $"{model.Student.LastName} {model.Student.FirstName} {model.Student.Patronymic}";
     if (model.Grade != 0)
     {
         gradeSelector.Text = model.Grade.ToString();
     }
     else
     {
         NoiseStart = false;
     }
 }
Beispiel #3
0
        private void gradeSelector_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (NoiseStart)
            {
                NoiseStart = false;
                return;
            }

            CheckBox           checkBox = sender as CheckBox;
            StudentRatingModel model    = this.Tag as StudentRatingModel;

            model.Grade = Int32.Parse(gradeSelector.Text);

            StateChanged?.Invoke(model, EventArgs.Empty);
        }
Beispiel #4
0
 /// <summary>
 /// Установить оценку студенту
 /// </summary>
 /// <param name="student"></param>
 public void StudentSetGrade(StudentRatingModel student)
 {
     Model.StudentSetGrade(student);
 }