예제 #1
0
        public bool SetPlace(Student student, ResultPlace place)
        {
            if (ContainsScore(student))
            {
                ResultPlaceCollection places = student.SemsScore.RatingResults;

                if (places.ContainsKey(place.Scope.ScopeType))
                {
                    places[place.Scope.ScopeType] = place;
                }
                else
                {
                    places.AddPlace(place);
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 protected RatableScore()
 {
     _rating_results = new ResultPlaceCollection();
     _score_name     = string.Empty;
     _score          = int.MinValue;
 }