public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Obligations serial_obligation = serial_Class as FpmlSerializedCSharp.Obligations; this.category_ = serial_obligation.Category_.ValueStr; this.notSubordinated_ = serial_obligation.NotSubordinated_.BooleanValue(); this.notDomesticCurrency_ = serial_obligation.NotDomesticCurrency_.BooleanValue(); this.notDomesticLaw_ = serial_obligation.NotDomesticIssuance_.BooleanValue(); this.notDomesticIssuance_ = serial_obligation.NotDomesticIssuance_.BooleanValue(); this.view_ = new ObligationsView(); this.view_.DataContext = this; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Obligations serial_Obligations = serial_Class as FpmlSerializedCSharp.Obligations; this.category_ = serial_Obligations.Category_.ValueStr; this.notSubordinated_ = serial_Obligations.NotSubordinated_.ValueStr; this.notDomesticCurrency_ = serial_Obligations.NotDomesticCurrency_.ValueStr; this.notDomesticLaw_ = serial_Obligations.NotDomesticLaw_.ValueStr; this.notDomesticIssuance_ = serial_Obligations.NotDomesticIssuance_.ValueStr; }
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; }