public void UpdateDetail(Project.ProjectDetail detail) { var change = Project.CombineWith(GetChange(), detail); if (change.ValidationResults.IsValid) { Apply(change); Raise(ProjectDetailUpdatedEvent.For(change)); } ValidationResults = change.ValidationResults; }
static public string Create_OtherDetailsXML(Project.ProjectDetail ProjectDetails) { string result = "<OtherDetails>"; result += "<PO>" + ProjectDetails.POName + "</PO>"; result += "<Auditor>" + ProjectDetails.Auditor + "</Auditor>"; result += "<EPC>" + ProjectDetails.EPCName + "</EPC>"; result += "<DivTaxe>" + ProjectDetails.DivPaidBeforeTaxes.ToString() + "</DivTaxe>"; result += "<PortionCashCMC>" + ProjectDetails.PortionCash4CMC.ToString() + "</PortionCashCMC>"; result += "<AuditorFee>" + ProjectDetails.AuditorFee.ToString() + "</AuditorFee>"; result += "<EquityCap>" + ProjectDetails.EquityCap.ToString() + "</EquityCap>"; result += "<EquityPortion>" + ProjectDetails.EquityPortion.ToString() + "</EquityPortion>"; result += "</OtherDetails>"; return(result); }