public Requirement(IRequirementsBean bean, string name) { if (bean == null) { return; } bean.AddRequirement(this); this.name = name; }
private static void AddRequirement(IRequirementsBean receiver, DefaultEditParams editParams) { RelationEditParameters rep = editParams as RelationEditParameters; if (rep == null) { return; } receiver.AddRequirement((Requirement)rep.Related); }