示例#1
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;
        }
示例#2
0
        public static UnderlyingInfoViewModel CreateUnderlyingInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.UnderlyingInformation serial_underInfo = serial_Class as FpmlSerializedCSharp.UnderlyingInformation;

            string undertype = serial_underInfo.Type_.ValueStr;

            return(UnderlyingInfoViewModel.CreateUnderlyingInfo(undertype));
        }
        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;
        }
示例#4
0
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as UnderlyingInfoViewModel;
 }
示例#5
0
 public void selectUnderlyingInfoInfo(string typeStr)
 {
     this.underlyingInfoViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(typeStr);
     this.view_.DataContext        = this;
 }