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;
 }