public static CreditPayoffInfoViewModel CreateCreditPayoffInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CreditPayoffInfo serial_CreditPayoffInfo = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo;
            string typeStr = serial_CreditPayoffInfo.Type_.ValueStr;

            return(CreditPayoffInfoViewModel.CreateCreditPayoffInfo(typeStr));
        }
示例#2
0
        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;
        }
 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;
 }
示例#4
0
 public void selectCreditPayoffInfoInfo(string typeStr)
 {
     this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(typeStr);
     this.view_.DataContext          = this;
 }
 public void selectCreditPayoffInfoInfo(string typeStr)
 {
     this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(typeStr);
     this.view_.DataContext = this;
 }