public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.InstrumentInfo serial_instInfo = serial_Class as FpmlSerializedCSharp.InstrumentInfo;
     FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_instInfo.CreditInstrument_ as FpmlSerializedCSharp.CreditInstrument;
 
     FpmlSerializedCSharp.IssueInformation serial_issueInfo = serial_CreditInstrument.IssueInformation_;
     string issueInfotype = serial_issueInfo.Type_.ValueStr;
     this.issueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInfotype);
     this.issueInfoViewModel_.setFromSerial(serial_issueInfo);
     
     FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInfo = serial_CreditInstrument.UnderlyingInformation_;
     string underlyingInfotype = serial_underlyingInfo.Type_.ValueStr;
     this.underlyingInfoViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(underlyingInfotype);
     this.underlyingInfoViewModel_.setFromSerial(serial_underlyingInfo);
     
     FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_;
     string creditPayoffInfotype = serial_creditPayoffInfo.Type_.ValueStr;
     this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype);
     this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo);
     
     this.view_ = new CreditInstrumentView();
     this.view_.DataContext = this;
 }
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as UnderlyingInfoViewModel;
 }
 public void selectUnderlyingInfoInfo(string typeStr)
 {
     this.underlyingInfoViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(typeStr);
     this.view_.DataContext = this;
 }