/// <summary> /// Constructor to add a project from Db to List /// </summary> /// <param name="id">int</param> /// <param name="Case">int</param> /// <param name="builder">string</param> /// <param name="status">int</param> /// <param name="tenderForm">int</param> /// <param name="enterpriseForm">int</param> /// <param name="executive">int</param> /// <param name="details">ProjectDetail</param> /// <param name="enterPriseList">bool</param> /// <param name="copy">bool</param> public Project(int id, int Case, Builder builder, ProjectStatus status, TenderForm tenderForm, EnterpriseForm enterpriseForm, User executive, ProjectDetail details, bool enterpriseList, bool copy = false) { this.id = id; this._case = Case; this.builder = builder; this.status = status; this.tenderForm = tenderForm; this.enterpriseForm = enterpriseForm; this.executive = executive; this.details = details; this.enterpriseList = enterpriseList; this.copy = copy; }
/// <summary> /// Constructor, that accepts data from an existing Project /// </summary> /// <param name="project"></param> public Project(Project project) { this.id = project.Id; this._case = project.Case; this.builder = project.Builder; this.status = project.Status; this.tenderForm = project.TenderForm; this.enterpriseForm = project.EnterpriseForm; this.executive = project.Executive; this.details = project.Details; this.enterpriseList = project.EnterpriseList; this.copy = project.Copy; }
/// <summary> /// Constructor, that accepts data from an existing Tender Form /// </summary> /// <param name="form">TenderForm</param> public TenderForm(TenderForm form) { if (form != null) { this.id = form.Id; this.text = form.Text; } else { this.id = 0; this.text = ""; } }
/// <summary> /// Constructor to add a new Indexed Tender Form /// </summary> /// <param name="index">int</param> /// <param name="form">TenderForm</param> public IndexedTenderForm(int index, TenderForm form) : base(form) { this.index = index; }