Ejemplo n.º 1
0
        public void AddUnitGrade(UnitGrade unitgrade)
        {
            if (unitgrade == null)
            {
                throw new ArgumentException("Cannot add a null unitgrade to trimester performance");
            }

            unitGrades.Add(unitgrade);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != typeof(UnitGrade)))
            {
                return(false);
            }
            UnitGrade compGrade = (UnitGrade)obj;

            if (compGrade.unitCode == unitCode)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }