public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.StandardInstrument serial_StandardInstrument = serial_Class as FpmlSerializedCSharp.StandardInstrument;

            FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_StandardInstrument.IssueInformation_;
            string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr;

            this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype);
            this.issueInformationViewModel_.setFromSerial(serial_issueInformation);

            FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_StandardInstrument.UnderlyingInformation_;
            string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr;

            this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype);
            this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation);

            FpmlSerializedCSharp.PayoffInfo serial_payoffInfo = serial_StandardInstrument.PayoffInfo_;
            string payoffInfotype = serial_payoffInfo.Excel_type_.ValueStr;

            this.payoffInfoViewModel_ = PayoffInfoViewModel.CreatePayoffInfo(payoffInfotype);
            this.payoffInfoViewModel_.setFromSerial(serial_payoffInfo);
        }
コード例 #2
0
        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;
        }