Beispiel #1
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 void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionPart serial_ProtectionPart = serial_Class as FpmlSerializedCSharp.ProtectionPart;

            this.payRecieve_ = serial_ProtectionPart.PayRecieve_.ValueStr;

            FpmlSerializedCSharp.ReferenceInformationList serial_referenceInformationList = serial_ProtectionPart.ReferenceInformationList_;
            this.referenceInformationListViewModel_ = new ReferenceInformationListViewModel();
            this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList);

            FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_;
            this.protectionTermsViewModel_ = new ProtectionTermsViewModel();
            this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms);

            this.view_             = new ProtectionPartView();
            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);
        }
Beispiel #4
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionPart serial_ProtectionPart = serial_Class as FpmlSerializedCSharp.ProtectionPart;

            this.payRecieve_ = serial_ProtectionPart.PayRecieve_.ValueStr;

            FpmlSerializedCSharp.ReferenceInformationList serial_referenceInformationList = serial_ProtectionPart.ReferenceInformationList_;
            string referenceInformationListtype = serial_referenceInformationList.Excel_type_.ValueStr;

            this.referenceInformationListViewModel_ = ReferenceInformationListViewModel.CreateReferenceInformationList(referenceInformationListtype);
            this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList);

            FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_;
            string protectionTermstype = serial_protectionTerms.Excel_type_.ValueStr;

            this.protectionTermsViewModel_ = ProtectionTermsViewModel.CreateProtectionTerms(protectionTermstype);
            this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms);
        }