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.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_;
     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_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;

        }