public override void buildVM() { this.setvm_ = new SimpleEventCouponTriggerViewModel(); setvm_.EventDate_ = eventDate_.ToString(); #region eventCal EventCalculationInfoViewModel ecivm = new EventCalculationInfoViewModel(); ecivm.EventCalculationViewModel_ = new ObservableCollection <EventCalculationViewModel>(); ecivm.EventCalculationViewModel_.Add(this.eventCalViewModel()); this.setvm_.EventCalculationInfoViewModel_ = ecivm; #endregion #region returnCal setvm_.ReturnCalculationInfoViewModel_ = new ReturnCalculationInfoViewModel(); setvm_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>(); setvm_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_.Add(this.vanillaReturnCalVM()); #endregion #region complementReturnCal setvm_.ComplementReturnCalculationViewModel_ = new ComplementReturnCalculationViewModel(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_ = new ReturnCalculationInfoViewModel(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ .Add(this.constReturnCalVM(this.constReturn_complement_)); #endregion #region payoffDate setvm_.PayoffDateInfoViewModel_ = new PayoffDateInfoViewModel(); setvm_.PayoffDateInfoViewModel_.FixingDateInfoViewModel_ = this.fixedFixingDate(); #endregion }
public override void buildVM() { this.setvm_ = new SimpleEventCouponTriggerViewModel(); setvm_.EventDate_ = eventDate_.ToString(); #region eventCal EventCalculationInfoViewModel ecivm = new EventCalculationInfoViewModel(); ecivm.EventCalculationViewModel_ = new ObservableCollection <EventCalculationViewModel>(); ecivm.EventCalculationViewModel_.Add( this.simpleRangeEventCalViewModel(lowerTrigger_, lowerEquality_, referenceID_, upperEquality_, upperTrigger_)); this.setvm_.EventCalculationInfoViewModel_ = ecivm; #endregion #region returnCal setvm_.ReturnCalculationInfoViewModel_ = new ReturnCalculationInfoViewModel(); setvm_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>(); setvm_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_.Add(this.constReturnCalVM(this.constReturn_)); #endregion #region complementReturnCal setvm_.ComplementReturnCalculationViewModel_ = new ComplementReturnCalculationViewModel(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_ = new ReturnCalculationInfoViewModel(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>(); setvm_.ComplementReturnCalculationViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ .Add(this.constReturnCalVM("0.0")); #endregion #region payoffDate setvm_.PayoffDateInfoViewModel_ = new PayoffDateInfoViewModel(); setvm_.PayoffDateInfoViewModel_.FixingDateInfoViewModel_ = this.fixedFixingDate(); #endregion #region autoCallable if (this.autoCallable_.ToUpper() == "TRUE" || this.autoCallable_.ToUpper() == "T") { setvm_.AutoTerminationTriggerViewModel_ = new AutoTerminationTriggerViewModel(); setvm_.AutoTerminationTriggerViewModel_.EventCalculationInfoViewModel_.EventCalculationViewModel_ = new ObservableCollection <EventCalculationViewModel>(); setvm_.AutoTerminationTriggerViewModel_.EventCalculationInfoViewModel_.EventCalculationViewModel_ .Add(this.simpleRangeEventCalViewModel(this.lowerTrigger_autoCall_, this.lowerEquality_autoCall_, this.referenceID_autoCall_, this.upperEquality_autoCall_, this.upperTrigger_autoCall_)); setvm_.AutoTerminationTriggerViewModel_.PayoffDateInfoViewModel_ = setvm_.PayoffDateInfoViewModel_; setvm_.AutoTerminationTriggerViewModel_.ReturnCalculationInfoViewModel_ = new ReturnCalculationInfoViewModel(); setvm_.AutoTerminationTriggerViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>(); setvm_.AutoTerminationTriggerViewModel_.ReturnCalculationInfoViewModel_.ReturnCalculationViewModel_ .Add(this.constReturnCalVM(this.autoCallConstReturn_)); } #endregion }