private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_fixedBondViewModel; this.IssueInfoGrid_.Children.Clear(); this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); this.fixedCouponScheduleGrid_.Children.Clear(); this.fixedCouponScheduleGrid_.Children.Add(this.viewModel_.Excel_fixedCouponScheduleListViewModel_.view()); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_fixedBondViewModel; this.IssueInfoGrid_.Children.Clear(); this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); this.fixedCouponScheduleGrid_.Children.Clear(); this.fixedCouponScheduleGrid_.Children.Add(this.viewModel_.Excel_fixedCouponScheduleListViewModel_.view()); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_fixedRateSwapLeg serial_Excel_fixedRateSwapLeg = serial_Excel_swapLeg.Excel_fixedRateSwapLeg_; //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_fixedRateSwapLeg.Excel_swapLegInfo_; //string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr; //this.excel_swapLegInfoViewModel_ = Excel_swapLegInfoViewModel.CreateExcel_swapLegInfo(excel_swapLegInfotype); //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_fixedRateSwapLeg.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_fixedBondViewModel_ = new Excel_fixedBondViewModel(); this.excel_fixedBondViewModel_.setFromSerial(serial_excel_interface); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_fixedRateSwapLeg serial_Excel_fixedRateSwapLeg = serial_Excel_swapLeg.Excel_fixedRateSwapLeg_; //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_fixedRateSwapLeg.Excel_swapLegInfo_; //string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr; //this.excel_swapLegInfoViewModel_ = Excel_swapLegInfoViewModel.CreateExcel_swapLegInfo(excel_swapLegInfotype); //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_fixedRateSwapLeg.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_fixedBondViewModel_ = new Excel_fixedBondViewModel(); this.excel_fixedBondViewModel_.setFromSerial(serial_excel_interface); }