public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_protect = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            CreditEventUnderInfoViewModel creditEventsVM = new CreditEventUnderInfoViewModel();

            creditEventsVM.setFromSerial(serial_protect.CreditEvents_);

            ObligationsViewModel obliVM = new ObligationsViewModel();

            obliVM.setFromSerial(serial_protect.Obligations_);

            this.view_             = new ProtectionTermView();
            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;
        }
Exemple #3
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);
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_ProtectionTerms = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_ProtectionTerms.CalculationAmount_;
            this.calculationAmountViewModel_ = new CalculationAmountViewModel();
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            FpmlSerializedCSharp.CreditEvents serial_creditEvents = serial_ProtectionTerms.CreditEvents_;
            this.creditEventsViewModel_ = new CreditEventsViewModel();
            this.creditEventsViewModel_.setFromSerial(serial_creditEvents);

            FpmlSerializedCSharp.Obligations serial_obligations = serial_ProtectionTerms.Obligations_;
            this.obligationsViewModel_ = new ObligationsViewModel();
            this.obligationsViewModel_.setFromSerial(serial_obligations);

            this.accrualCoupon_ = serial_ProtectionTerms.AccrualCoupon_.ValueStr;

            this.view_             = new ProtectionTermsView();
            this.view_.DataContext = this;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_ProtectionTerms = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_ProtectionTerms.CalculationAmount_;
            string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr;

            this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype);
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            FpmlSerializedCSharp.CreditEvents serial_creditEvents = serial_ProtectionTerms.CreditEvents_;
            string creditEventstype = serial_creditEvents.Excel_type_.ValueStr;

            this.creditEventsViewModel_ = CreditEventsViewModel.CreateCreditEvents(creditEventstype);
            this.creditEventsViewModel_.setFromSerial(serial_creditEvents);

            FpmlSerializedCSharp.Obligations serial_obligations = serial_ProtectionTerms.Obligations_;
            string obligationstype = serial_obligations.Excel_type_.ValueStr;

            this.obligationsViewModel_ = ObligationsViewModel.CreateObligations(obligationstype);
            this.obligationsViewModel_.setFromSerial(serial_obligations);

            this.accrualCoupon_ = serial_ProtectionTerms.AccrualCoupon_.ValueStr;
        }