public bool Equal(IStandart standart) { bool isEqual = false; if (standart.getName() == getName()) { isEqual = true; } return(isEqual); }
public void addParentStandart(IStandart standart) { if (isStandartNotParentYet(standart)) { standartParents.Add(standart); } else { throw new FormatException(ErrorHolder.standartIsAlreadyParentToGrade); } }
//---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(); }
public Grade(IStandart parent) { gradeName = NameHolder.defaultGradeName; standartParents = new List <IStandart>(); addParentStandart(parent); }
public Grade(IStandart parent, string name) { gradeName = name; standartParents = new List <IStandart>(); addParentStandart(parent); }
public void addStandart(IStandart standart) { standart.addParrent(this); projectStandarts.Add(standart); }