Beispiel #1
0
        public bool Equal(IStandart standart)
        {
            bool isEqual = false;

            if (standart.getName() == getName())
            {
                isEqual = true;
            }
            return(isEqual);
        }
Beispiel #2
0
 public void addParentStandart(IStandart standart)
 {
     if (isStandartNotParentYet(standart))
     {
         standartParents.Add(standart);
     }
     else
     {
         throw new FormatException(ErrorHolder.standartIsAlreadyParentToGrade);
     }
 }
Beispiel #3
0
        //---private-----------------------------

        private bool isStandartNotParentYet(IStandart standart)
        {
            bool isStandartNotParentYet = true;

            foreach (IStandart stdrt in standartParents)
            {
                if (stdrt.Equals(standart))
                {
                    isStandartNotParentYet = false;
                    break;
                }
            }
            return(isStandartNotParentYet);
        }
 public void AddStandart(IStandart rStandart)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public Grade(IStandart parent)
 {
     gradeName       = NameHolder.defaultGradeName;
     standartParents = new List <IStandart>();
     addParentStandart(parent);
 }
Beispiel #6
0
 public Grade(IStandart parent, string name)
 {
     gradeName       = name;
     standartParents = new List <IStandart>();
     addParentStandart(parent);
 }
Beispiel #7
0
 public void addStandart(IStandart standart)
 {
     standart.addParrent(this);
     projectStandarts.Add(standart);
 }