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 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.UnderlyingInformation serial_underInfo = serial_Class as FpmlSerializedCSharp.UnderlyingInformation; FpmlSerializedCSharp.IndexUnderInfo serial_indexUnderInfo = serial_underInfo.IndexUnderInfo_; this.indexUnderList_ = new ObservableCollection <IndexUnderViewModel>(); foreach (var item in serial_indexUnderInfo.Index_) { IndexUnderViewModel indexUnderVM = IndexUnderViewModel.CreateIndexUnder(item); indexUnderVM.setFromSerial(item); this.indexUnderList_.Add(indexUnderVM); } this.view_ = new IndexUnderInfoView(); this.view_.DataContext = this; }
public UnderlyingInfo_paraViewModel makeParameterInfoVM(FpmlSerializedCSharp.UnderlyingInformation xml_underInfo) { UnderlyingInfo_paraViewModel underInfoParaVM = new UnderlyingInfo_paraViewModel(); ObservableCollection <Underlying_paraViewModel> underParaVMList = new ObservableCollection <Underlying_paraViewModel>(); List <FpmlSerializedCSharp.Index> xml_indexList = xml_underInfo.IndexUnderInfo_.Index_; foreach (var item in xml_indexList) { underParaVMList.Add(this.makeIndexPara(item)); } // correlation CorrelationInfo_paraViewModel corr_paraVM = this.makeCorrPara(xml_indexList); return(underInfoParaVM); }
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); }
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; }