public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.CreditPayoffInfo serial_CreditPayoffInfo = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo; FpmlSerializedCSharp.CreditDefaultSwap serial_CreditDefaultSwap = serial_CreditPayoffInfo.CreditDefaultSwap_; FpmlSerializedCSharp.ProtectionPart serial_protectionPart = serial_CreditDefaultSwap.ProtectionPart_; string protectionParttype = serial_protectionPart.Excel_type_.ValueStr; this.protectionPartViewModel_ = ProtectionPartViewModel.CreateProtectionPart(protectionParttype); this.protectionPartViewModel_.setFromSerial(serial_protectionPart); FpmlSerializedCSharp.CouponPart serial_couponPart = serial_CreditDefaultSwap.CouponPart_; string couponParttype = serial_couponPart.Excel_type_.ValueStr; this.couponPartViewModel_ = CouponPartViewModel.CreateCouponPart(couponParttype); this.couponPartViewModel_.setFromSerial(serial_couponPart); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.CreditPayoffInfo serial_CreditPayoffInfo = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo; FpmlSerializedCSharp.CreditDefaultSwap serial_CreditDefaultSwap = serial_CreditPayoffInfo.CreditDefaultSwap_; FpmlSerializedCSharp.ProtectionPart serial_protectionPart = serial_CreditDefaultSwap.ProtectionPart_; string protectionParttype = serial_protectionPart.Excel_type_.ValueStr; this.protectionPartViewModel_ = ProtectionPartViewModel.CreateProtectionPart(protectionParttype); this.protectionPartViewModel_.setFromSerial(serial_protectionPart); FpmlSerializedCSharp.CouponPart serial_couponPart = serial_CreditDefaultSwap.CouponPart_; string couponParttype = serial_couponPart.Excel_type_.ValueStr; this.couponPartViewModel_ = CouponPartViewModel.CreateCouponPart(couponParttype); this.couponPartViewModel_.setFromSerial(serial_couponPart); }