public WeightCategoryWin CopyForWhatIf(ClassWin newParent)
        {
            WeightCategoryWin weight = new WeightCategoryWin()
            {
                Name        = Name,
                WeightValue = WeightValue,
                Parent      = newParent
            };


            weight.Grades = new MyObservableList <GradeWin>();
            for (int i = 0; i < Grades.Count; i++)
            {
                weight.Grades.Add(Grades[i].CopyForWhatIf(weight));
            }

            return(weight);
        }
Example #2
0
 public AllGradesComparer(ClassWin c)
 {
     classItem = c;
 }