/// <summary> /// Constructor to add subentrepeneur from Db to List /// </summary> /// <param name="entrepeneurs">List<LegalEntity></param> /// <param name="id">int</param> /// <param name="enterpriseList">int?</param> /// <param name="entrepeneur">string</param> /// <param name="contact">int?</param> /// <param name="request">int?</param> /// <param name="ittLetter">int?</param> /// <param name="offer">int?</param> /// <param name="reservations">bool</param> /// <param name="uphold">bool</param> /// <param name="agreementConcluded">bool</param> /// <param name="active">bool</param> public SubEntrepeneur(int id, Enterprise enterpriseList, LegalEntity entrepeneur, Contact contact, Request request, IttLetter ittLetter, Offer offer, bool reservations, bool uphold, bool agreementConcluded, bool active) { this.id = id; this.enterpriseList = enterpriseList; this.entrepeneur = entrepeneur; this.contact = contact; this.request = request; this.ittLetter = ittLetter; this.offer = offer; this.reservations = reservations; this.uphold = uphold; this.agreementConcluded = agreementConcluded; this.active = active; }
/// <summary> /// Constructor for that accepts data from existing SubEntrepeneur /// </summary> /// <param name="entrepeneurs">List<LegalEntity></param> /// <param name="subEntrepeneur">SubEntrepeneur</param> public SubEntrepeneur(SubEntrepeneur subEntrepeneur) { this.id = subEntrepeneur.Id; this.contact = subEntrepeneur.Contact; this.enterpriseList = subEntrepeneur.EnterpriseList; this.entrepeneur = subEntrepeneur.Entrepeneur; this.request = subEntrepeneur.Request; this.ittLetter = subEntrepeneur.IttLetter; this.offer = subEntrepeneur.Offer; this.reservations = subEntrepeneur.Reservations; this.uphold = subEntrepeneur.Uphold; this.agreementConcluded = subEntrepeneur.AgreementConcluded; this.active = subEntrepeneur.Active; }
/// <summary> /// Empty constructor /// </summary> /// <param name="entrepeneurs">List<LegalEntity></param> public SubEntrepeneur() { this.id = 0; this.enterpriseList = new Enterprise(); this.entrepeneur = new LegalEntity(); this.contact = new Contact(); this.request = new Request(); this.ittLetter = new IttLetter(); this.offer = new Offer(); this.reservations = false; this.uphold = false; this.agreementConcluded = false; this.active = false; }
/// <summary> /// Constructor, that adds an index to an existing Enterprise /// </summary> /// <param name="index">int</param> /// <param name="enterprise">Enterprise</param> public IndexedEnterprise(int index, Enterprise enterprise) : base(enterprise) { this.index = index; }