public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_vanillaFloatingBond serial_Excel_vanillaFloatingBond = serial_Excel_interface.Excel_vanillaFloatingBond_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_vanillaFloatingBond.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_vanillaFloatingBond.Excel_underlyingCalcInfo_; string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr; this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype); this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo); FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_excel_vanillaFloatingCouponScheduleList = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingCouponScheduleList_; string excel_vanillaFloatingCouponScheduleListtype = serial_excel_vanillaFloatingCouponScheduleList.Excel_type_.ValueStr; this.excel_vanillaFloatingCouponScheduleListViewModel_ = Excel_vanillaFloatingCouponScheduleListViewModel.CreateExcel_vanillaFloatingCouponScheduleList(excel_vanillaFloatingCouponScheduleListtype); this.excel_vanillaFloatingCouponScheduleListViewModel_.setFromSerial(serial_excel_vanillaFloatingCouponScheduleList); FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype serial_excel_vanillaFloatingBond_subtype = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingBond_subtype_; string excel_vanillaFloatingBond_subtypetype = serial_excel_vanillaFloatingBond_subtype.Excel_type_.ValueStr; this.excel_vanillaFloatingBond_subtypeViewModel_ = Excel_vanillaFloatingBond_subtypeViewModel.CreateExcel_vanillaFloatingBond_subtype(excel_vanillaFloatingBond_subtypetype); this.excel_vanillaFloatingBond_subtypeViewModel_.setFromSerial(serial_excel_vanillaFloatingBond_subtype); }
public void setScheduleFromClone(Excel_vanillaFloatingCouponScheduleListViewModel e_vfcslvm) { this.excel_vanillaFloatingCouponScheduleViewModel_.Clear(); foreach (var item in e_vfcslvm.excel_vanillaFloatingCouponScheduleViewModel_) { this.excel_vanillaFloatingCouponScheduleViewModel_.Add(item); } }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.excel_vanillaFloatingBond_subScheduleViewModel_.Count;; Excel_vanillaFloatingCouponScheduleListViewModel e_vfcslvm = new Excel_vanillaFloatingCouponScheduleListViewModel(); //excel_vanillaFloatingCouponScheduleViewModel_ for (int i = 0; i < scheduleNum; i++) { e_vfcslvm.Excel_vanillaFloatingCouponScheduleViewModel_.Add( this.excel_vanillaSimpleVMBuild(this.excel_vanillaFloatingBond_subScheduleViewModel_[i])); } this.Excel_vanillaFloatingCouponScheduleListViewModel_ = e_vfcslvm; }
public Excel_vanillaFloatingBondViewModel() { this.excel_issueInfoViewModel_ = new Excel_noteInfoViewModel(); this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel(); this.excel_vanillaFloatingCouponScheduleListViewModel_ = new Excel_vanillaFloatingCouponScheduleListViewModel(); // default로 박을거 this.excel_vanillaFloatingBond_subtypeViewModel_ = new Excel_vanillaFloatingBond_simpleViewModel(); //this.excel_issueInfoViewModel_.PropertyChanged // += new PropertyChangedEventHandler(this.couponScheduleInfoViewModel_.ScheduleInitialDateObserver); ////초기 값 set //this.couponScheduleInfoViewModel_.ScheduleInitialDate_ = this.excel_issueInfoViewModel_.EffectiveDate_; //this.view_ = new Excel_vanillaFloatingBondView(); //this.view_.DataContext = this; }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_vanillaFloatingCouponScheduleListViewModel; this.vanillaFloatingScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_vanillaFloatingCouponScheduleViewModel_; }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.excel_vanillaFloatingBond_subScheduleViewModel_.Count; ; Excel_vanillaFloatingCouponScheduleListViewModel e_vfcslvm = new Excel_vanillaFloatingCouponScheduleListViewModel(); //excel_vanillaFloatingCouponScheduleViewModel_ for (int i = 0; i < scheduleNum; i++) { e_vfcslvm.Excel_vanillaFloatingCouponScheduleViewModel_.Add( this.excel_vanillaSimpleVMBuild(this.excel_vanillaFloatingBond_subScheduleViewModel_[i])); } this.Excel_vanillaFloatingCouponScheduleListViewModel_ = e_vfcslvm; }