public void SetAllocState(AllocationStateCollection2 allocstate) { CurrentAllocationStateCollection = allocstate; AllocatedLossSeries = subjectLoss.Clone(); double ratio; if (subjectLoss.TotalLoss > 0) { ratio = allocstate.GetPayout() / subjectLoss.TotalLoss; AllocatedLossSeries.AllocateRatio(ratio); } }