public static IssueInformationViewModel CreateIssueInformation(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation;
            string typeStr = serial_IssueInformation.Type_.ValueStr;

            return(IssueInformationViewModel.CreateIssueInformation(typeStr));
        }
Esempio n. 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;
 }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.InstrumentInfo     serial_instInfo  = serial_Class as FpmlSerializedCSharp.InstrumentInfo;
            FpmlSerializedCSharp.StandardInstrument serial_standInst = serial_instInfo.StandardInstrument_;

            try
            {
            }
            catch (Exception e)
            {
                ErrorManager.setError(e);
            }

            //잠시 벗겨놈
            FpmlSerializedCSharp.IssueInformation serial_issueInfo = serial_standInst.IssueInformation_;
            string issueInfoType = serial_issueInfo.Type_.ValueStr;

            this.IssueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInfoType);
            this.IssueInfoViewModel_.setFromSerial(serial_issueInfo);

            FpmlSerializedCSharp.UnderlyingInformation serial_underInfo = serial_standInst.UnderlyingInformation_;
            string underInfoType = serial_underInfo.Type_.ValueStr;

            this.UnderlyingViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(underInfoType);
            this.UnderlyingViewModel_.setFromSerial(serial_underInfo);

            FpmlSerializedCSharp.PayoffInfo serial_payoffInfo = serial_standInst.PayoffInfo_;
            string payoffInfoType = serial_payoffInfo.Type_.ValueStr;

            this.PayoffViewModel_ = PayoffInfoViewModel.CreatePayoffInfo(payoffInfoType);
            this.PayoffViewModel_.setFromSerial(serial_payoffInfo);
            this.payoffInfoType_ = this.PayoffViewModel_.Type_;

            this.view_             = new StandardInstView();
            this.view_.DataContext = this;
        }
Esempio n. 5
0
 public void selectIssueInfoInfo(string typeStr)
 {
     this.issueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(typeStr);
     this.view_.DataContext   = this;
 }
 public void selectIssueInfoInfo(string typeStr)
 {
     this.issueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(typeStr);
     this.view_.DataContext = this;
 }