public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.FixedCouponScheduleInfo serial_FixedCouponScheduleInfo = serial_Class as FpmlSerializedCSharp.FixedCouponScheduleInfo; this.scheduleInitialDate_ = serial_FixedCouponScheduleInfo.ScheduleInitialDate_.ValueStr; this.fixedRate_ = serial_FixedCouponScheduleInfo.FixedRate_.ValueStr; this.dayCounter_ = serial_FixedCouponScheduleInfo.DayCounter_.ValueStr; this.maturityDate_ = serial_FixedCouponScheduleInfo.MaturityDate_.ValueStr; List <FpmlSerializedCSharp.FixedCouponSchedule> serial_fixedCouponSchedule = serial_FixedCouponScheduleInfo.FixedCouponSchedule_; this.fixedCouponScheduleViewModel_ = new ObservableCollection <FixedCouponScheduleViewModel>(); foreach (var item in serial_fixedCouponSchedule) { string type = item.Excel_type_.ValueStr; FixedCouponScheduleViewModel viewModel = FixedCouponScheduleViewModel.CreateFixedCouponSchedule(type); viewModel.setFromSerial(item); this.fixedCouponScheduleViewModel_.Add(viewModel); } this.view_ = new FixedCouponScheduleInfoView(); this.view_.DataContext = this; }
public void selectFixedCouponScheduleInfo(string typeStr) { this.fixedCouponScheduleViewModel_ = FixedCouponScheduleViewModel.CreateFixedCouponSchedule(typeStr); this.view_.DataContext = this; }