public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.SwapPayoffInfo serial_SwapPayoffInfo = serial_Class as FpmlSerializedCSharp.SwapPayoffInfo; FpmlSerializedCSharp.AutoCallableSwapPayoff serial_AutoCallableSwapPayoff = serial_SwapPayoffInfo.AutoCallableSwapPayoff_; FpmlSerializedCSharp.RecieveSwapPart serial_recieveSwapPart = serial_AutoCallableSwapPayoff.RecieveSwapPart_; string recieveSwapParttype = serial_recieveSwapPart.Excel_type_.ValueStr; this.recieveSwapPartViewModel_ = RecieveSwapPartViewModel.CreateRecieveSwapPart(recieveSwapParttype); this.recieveSwapPartViewModel_.setFromSerial(serial_recieveSwapPart); FpmlSerializedCSharp.PaySwapPart serial_paySwapPart = serial_AutoCallableSwapPayoff.PaySwapPart_; string paySwapParttype = serial_paySwapPart.Excel_type_.ValueStr; this.paySwapPartViewModel_ = PaySwapPartViewModel.CreatePaySwapPart(paySwapParttype); this.paySwapPartViewModel_.setFromSerial(serial_paySwapPart); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.StandardSwapInstrument serial_StandardSwapInstrument = serial_Class as FpmlSerializedCSharp.StandardSwapInstrument; FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_StandardSwapInstrument.IssueInformation_; string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr; this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype); this.issueInformationViewModel_.setFromSerial(serial_issueInformation); FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_StandardSwapInstrument.UnderlyingInformation_; string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr; this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype); this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation); FpmlSerializedCSharp.SwapPayoffInfo serial_swapPayoffInfo = serial_StandardSwapInstrument.SwapPayoffInfo_; string swapPayoffInfotype = serial_swapPayoffInfo.Excel_type_.ValueStr; this.swapPayoffInfoViewModel_ = SwapPayoffInfoViewModel.CreateSwapPayoffInfo(swapPayoffInfotype); this.swapPayoffInfoViewModel_.setFromSerial(serial_swapPayoffInfo); }