private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_creditEventsViewModel; //this.jointInfoGrid_.Children.Clear(); //this.jointInfoGrid_.Children.Add(this.viewModel_.Excel_jointProbabilityTraitViewModel_.view()); //this.referenceListGrid_.Children.Clear(); //this.referenceListGrid_.Children.Add(this.viewModel_.Excel_referenceInformationListViewModel_.view()); //this.protectionGrid_.Children.Clear(); //this.protectionGrid_.Children.Add(this.viewModel_.Excel_protectionTermsViewModel_.view()); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_creditEventsViewModel; //this.jointInfoGrid_.Children.Clear(); //this.jointInfoGrid_.Children.Add(this.viewModel_.Excel_jointProbabilityTraitViewModel_.view()); //this.referenceListGrid_.Children.Clear(); //this.referenceListGrid_.Children.Add(this.viewModel_.Excel_referenceInformationListViewModel_.view()); //this.protectionGrid_.Children.Clear(); //this.protectionGrid_.Children.Add(this.viewModel_.Excel_protectionTermsViewModel_.view()); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_protectionTerms serial_Excel_protectionTerms = serial_Class as FpmlSerializedCSharp.Excel_protectionTerms; FpmlSerializedCSharp.Excel_creditEvents serial_excel_creditEvents = serial_Excel_protectionTerms.Excel_creditEvents_; //string excel_creditEventstype = serial_excel_creditEvents.Excel_type_.ValueStr; this.excel_creditEventsViewModel_ = new Excel_creditEventsViewModel(); this.excel_creditEventsViewModel_.setFromSerial(serial_excel_creditEvents); FpmlSerializedCSharp.Excel_obligations serial_excel_obligations = serial_Excel_protectionTerms.Excel_obligations_; //string excel_obligationstype = serial_excel_obligations.Excel_type_.ValueStr; this.excel_obligationsViewModel_ = new Excel_obligationsViewModel(); this.excel_obligationsViewModel_.setFromSerial(serial_excel_obligations); this.accrualCoupon_ = serial_Excel_protectionTerms.AccrualCoupon_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_protectionTerms serial_Excel_protectionTerms = serial_Class as FpmlSerializedCSharp.Excel_protectionTerms; FpmlSerializedCSharp.Excel_creditEvents serial_excel_creditEvents = serial_Excel_protectionTerms.Excel_creditEvents_; string excel_creditEventstype = serial_excel_creditEvents.Excel_type_.ValueStr; this.excel_creditEventsViewModel_ = Excel_creditEventsViewModel.CreateExcel_creditEvents(excel_creditEventstype); this.excel_creditEventsViewModel_.setFromSerial(serial_excel_creditEvents); FpmlSerializedCSharp.Excel_obligations serial_excel_obligations = serial_Excel_protectionTerms.Excel_obligations_; string excel_obligationstype = serial_excel_obligations.Excel_type_.ValueStr; this.excel_obligationsViewModel_ = Excel_obligationsViewModel.CreateExcel_obligations(excel_obligationstype); this.excel_obligationsViewModel_.setFromSerial(serial_excel_obligations); this.accrualCoupon_ = serial_Excel_protectionTerms.AccrualCoupon_.ValueStr; }