public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_creditEventSwapLeg serial_Excel_creditEventSwapLeg = serial_Excel_swapLeg.Excel_creditEventSwapLeg_; FpmlSerializedCSharp.Excel_creditEventInfo serial_excel_creditEventInfo = serial_Excel_creditEventSwapLeg.Excel_creditEventInfo_; string excel_creditEventInfotype = serial_excel_creditEventInfo.Excel_type_.ValueStr; this.excel_creditEventInfoViewModel_ = Excel_creditEventInfoViewModel.CreateExcel_creditEventInfo(excel_creditEventInfotype); this.excel_creditEventInfoViewModel_.setFromSerial(serial_excel_creditEventInfo); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_creditEventInfoViewModel; this.swapIssueInfoGrid_.Children.Clear(); this.swapIssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); 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()); }