本文整理汇总了C#中FpmlSerializedCSharp类的典型用法代码示例。如果您正苦于以下问题:C# FpmlSerializedCSharp类的具体用法?C# FpmlSerializedCSharp怎么用?C# FpmlSerializedCSharp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FpmlSerializedCSharp类属于命名空间,在下文中一共展示了FpmlSerializedCSharp类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_Excel_underlyingCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcInfo;
List<FpmlSerializedCSharp.Excel_underlyingInfo> serial_excel_underlyingInfo = serial_Excel_underlyingCalcInfo.Excel_underlyingInfo_;
this.excel_underlyingInfoViewModel_ = new ObservableCollection<Excel_underlyingInfoViewModel>();
foreach (var item in serial_excel_underlyingInfo)
{
string type = item.Type_.ValueStr;
Excel_underlyingInfoViewModel viewModel = Excel_underlyingInfoViewModel.CreateExcel_underlyingInfo(type);
viewModel.setFromSerial(item);
this.excel_underlyingInfoViewModel_.Add(viewModel);
}
List<FpmlSerializedCSharp.Excel_underlyingCalcID> serial_excel_underlyingCalcID = serial_Excel_underlyingCalcInfo.Excel_underlyingCalcID_;
this.excel_underlyingCalcIDViewModel_ = new ObservableCollection<Excel_underlyingCalcIDViewModel>();
foreach (var item in serial_excel_underlyingCalcID)
{
string type = item.Type_.ValueStr;
Excel_underlyingCalcIDViewModel viewModel = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(type);
viewModel.setFromSerial(item);
this.excel_underlyingCalcIDViewModel_.Add(viewModel);
}
this.view_ = new Excel_underlyingCalcInfoView();
this.view_.DataContext = this;
}
示例2: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.CouponPart serial_CouponPart = serial_Class as FpmlSerializedCSharp.CouponPart;
this.payRecieve_ = serial_CouponPart.PayRecieve_.ValueStr;
}
示例3: setFromSerial
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.InstHirachyInfo serial_hirachy = serial_Class as FpmlSerializedCSharp.InstHirachyInfo;
//this.itemCode_ = serial_hirachy.Code_.ValueStr;
//this.productType_ = serial_hirachy.Type_.ValueStr;
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(this.InstUri_.Uri_.LocalPath);
XmlNode headerNode = xmlDoc.SelectSingleNode("instrument/header");
FpmlSerializedCSharp.Header serial_header = new FpmlSerializedCSharp.Header(headerNode);
//this.productName_ = serial_header.ProductName_.ValueStr;
this.productType_ = serial_header.ProductType_.ValueStr;
this.itemCode_ = serial_header.KrCode_.ValueStr;
//this.loadInstBaseVM();
//foreach (var item in serial_hirachy.InstHirachyInfo_)
//{
// this.HirachyInstVMList_ = new ObservableCollection<HirachyInstrumentVM>();
// ExploreHirachyInstrumentVMWrapper exploreHirachyInstVMWrapper = new ExploreHirachyInstrumentVMWrapper();
// exploreHirachyInstVMWrapper.setFromSerial(serial_hirachy);
// this.HirachyInstVMList_.Add(exploreHirachyInstVMWrapper);
//}
}
示例4: setFromSerial
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.Excel_additionalOption serial_Excel_additionalOption = serial_Class as FpmlSerializedCSharp.Excel_additionalOption;
FpmlSerializedCSharp.Excel_callableOption serial_Excel_callableOption = serial_Excel_additionalOption.Excel_callableOption_;
this.optionType_ = serial_Excel_callableOption.OptionType_.ValueStr;
}
示例5: EventIndexTransformationViewModel
public EventIndexTransformationViewModel(FpmlSerializedCSharp.EventIndexTransformation eventIndexTransformation)
{
// TODO: Complete member initialization
this.eit_= eventIndexTransformation;
this.buildFromSerialClass();
}
示例6: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.InterestRateIndex serial_InterestRateIndex = serial_Class as FpmlSerializedCSharp.InterestRateIndex;
this.tenor_ = serial_InterestRateIndex.Tenor_.ValueStr;
}
示例7: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.PreEventCalculation serial_PreEventCalculation = serial_Class as FpmlSerializedCSharp.PreEventCalculation;
List<FpmlSerializedCSharp.EventCalculationList> serial_eventCalculationList = serial_PreEventCalculation.EventCalculationList_;
this.eventCalculationListViewModel_ = new ObservableCollection<EventCalculationListViewModel>();
foreach (var item in serial_eventCalculationList)
{
//string type = item.Type_.ValueStr;
EventCalculationListViewModel viewModel = new EventCalculationListViewModel();
viewModel.setFromSerial(item);
this.eventCalculationListViewModel_.Add(viewModel);
}
//List<FpmlSerializedCSharp.JointEventCalculation> serial_jointEventCalculation = serial_PreEventCalculation.JointEventCalculation_;
//this.jointEventCalculationViewModel_ = new ObservableCollection<JointEventCalculationViewModel>();
//foreach (var item in serial_jointEventCalculation)
//{
// string type = item.Type_.ValueStr;
// JointEventCalculationViewModel viewModel = JointEventCalculationViewModel.CreateJointEventCalculation(type);
// viewModel.setFromSerial(item);
// this.jointEventCalculationViewModel_.Add(viewModel);
//}
//this.view_ = new PreEventCalculationView();
//this.view_.DataContext = this;
}
示例8: setFromSerial
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.Excel_swapInterface serial_Excel_swapInterface = serial_Class as FpmlSerializedCSharp.Excel_swapInterface;
FpmlSerializedCSharp.Excel_structuredSwap serial_Excel_structuredSwap = serial_Excel_swapInterface.Excel_structuredSwap_;
//FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo serial_excel_counterUnderlyingCalcInfo = serial_Excel_structuredSwap.Excel_counterUnderlyingCalcInfo_;
//string excel_counterUnderlyingCalcInfotype = serial_excel_counterUnderlyingCalcInfo.Excel_type_.ValueStr;
//this.excel_counterUnderlyingCalcInfoViewModel_ = Excel_counterUnderlyingCalcInfoViewModel.CreateExcel_counterUnderlyingCalcInfo(excel_counterUnderlyingCalcInfotype);
//this.excel_counterUnderlyingCalcInfoViewModel_.setFromSerial(serial_excel_counterUnderlyingCalcInfo);
FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredSwap.Excel_issueInfo_;
string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr;
this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype);
this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo);
List<FpmlSerializedCSharp.Excel_swapLeg> serial_excel_swapLeg = serial_Excel_structuredSwap.Excel_swapLeg_;
this.excel_swapLegViewModel_ = new ObservableCollection<Excel_swapLegViewModel>();
foreach (var item in serial_excel_swapLeg)
{
string type = item.Excel_type_.ValueStr;
Excel_swapLegViewModel viewModel = Excel_swapLegViewModel.CreateExcel_swapLeg(type);
viewModel.setFromSerial(item);
this.excel_swapLegViewModel_.Add(viewModel);
}
}
示例9: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.PreConditionEvent serial_PreConditionEvent = serial_Class as FpmlSerializedCSharp.PreConditionEvent;
this.refName_ = serial_PreConditionEvent.RefName_.ValueStr;
}
示例10: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.EvaluationCurves serial_EvaluationCurves = serial_Class as FpmlSerializedCSharp.EvaluationCurves;
//this.view_ = new EvaluationCurvesView();
//this.view_.DataContext = this;
}
示例11: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.FixedRateType serial_FixedRateType = serial_Class as FpmlSerializedCSharp.FixedRateType;
this.fixedRate_ = serial_FixedRateType.FixedRate_.ValueStr;
}
示例12: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.Excel_jointProbabilityTrait serial_Excel_jointProbabilityTrait = serial_Class as FpmlSerializedCSharp.Excel_jointProbabilityTrait;
this.nth_ = serial_Excel_jointProbabilityTrait.Nth_.ValueStr;
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:7,代码来源:Excel_jointProbabilityTraitViewModel.cs
示例13: ReturnCtrlViewModel
public ReturnCtrlViewModel(FpmlSerializedCSharp.ReturnTran returnTran)
{
// TODO: Complete member initialization
this.returnTran_ = returnTran;
this.buildFromSerialClass();
}
示例14: setFromSerial
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
{
FpmlSerializedCSharp.CalculationAgent serial_CalculationAgent = serial_Class as FpmlSerializedCSharp.CalculationAgent;
this.calculationAgentParty_ = serial_CalculationAgent.CalculationAgentParty_.ValueStr;
}
示例15: makeIndexPara
public Underlying_paraViewModel makeIndexPara(FpmlSerializedCSharp.Index xml_index)
{
Underlying_paraViewModel vm;
string processType = "";
if (xml_index.Type_.ValueStr == "stockIndex")
{
processType = "geometricBM";
vm = Underlying_paraViewModel.CreateUnderlying_para(processType);
}
else if (xml_index.Type_.ValueStr == "stockIndex")
{
processType = "geometricBM";
vm = Underlying_paraViewModel.CreateUnderlying_para(processType);
}
else
{
processType = "geometricBM";
vm = Underlying_paraViewModel.CreateUnderlying_para(processType);
}
return vm;
}