public static CreditPayoffInfoViewModel CreateCreditPayoffInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CreditPayoffInfo serial_CreditPayoffInfo = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo;
            string typeStr = serial_CreditPayoffInfo.Type_.ValueStr;

            return(CreditPayoffInfoViewModel.CreateCreditPayoffInfo(typeStr));
        }
Пример #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.InstrumentInfo   serial_instInfo         = serial_Class as FpmlSerializedCSharp.InstrumentInfo;
            FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_instInfo.CreditInstrument_ as FpmlSerializedCSharp.CreditInstrument;

            FpmlSerializedCSharp.IssueInformation serial_issueInfo = serial_CreditInstrument.IssueInformation_;
            string issueInfotype = serial_issueInfo.Type_.ValueStr;

            this.issueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInfotype);
            this.issueInfoViewModel_.setFromSerial(serial_issueInfo);

            FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInfo = serial_CreditInstrument.UnderlyingInformation_;
            string underlyingInfotype = serial_underlyingInfo.Type_.ValueStr;

            this.underlyingInfoViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(underlyingInfotype);
            this.underlyingInfoViewModel_.setFromSerial(serial_underlyingInfo);

            FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_;
            string creditPayoffInfotype = serial_creditPayoffInfo.Type_.ValueStr;

            this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype);
            this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo);

            this.view_             = new CreditInstrumentView();
            this.view_.DataContext = this;
        }
Пример #3
0
        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_;
            this.protectionPartViewModel_ = new ProtectionPartViewModel();
            this.protectionPartViewModel_.setFromSerial(serial_protectionPart);

            FpmlSerializedCSharp.CouponPart serial_couponPart = serial_CreditDefaultSwap.CouponPart_;
            this.couponPartViewModel_ = new CouponPartViewModel();
            this.couponPartViewModel_.setFromSerial(serial_couponPart);

            this.view_             = new CreditDefaultSwapView();
            this.view_.DataContext = this;
        }
        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 void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_Class as FpmlSerializedCSharp.CreditInstrument;

            FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_CreditInstrument.IssueInformation_;
            string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr;

            this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype);
            this.issueInformationViewModel_.setFromSerial(serial_issueInformation);

            FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_CreditInstrument.UnderlyingInformation_;
            string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr;

            this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype);
            this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation);

            FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_;
            string creditPayoffInfotype = serial_creditPayoffInfo.Excel_type_.ValueStr;

            this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype);
            this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo);
        }