public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_greekResult serial_Excel_greekResult = serial_Class as FpmlSerializedCSharp.Excel_greekResult; List <FpmlSerializedCSharp.Excel_greekUnderlying> serial_excel_greekUnderlying = serial_Excel_greekResult.Excel_greekUnderlying_; this.excel_greekUnderlyingViewModel_ = new ObservableCollection <Excel_greekUnderlyingViewModel>(); foreach (var item in serial_excel_greekUnderlying) { Excel_greekUnderlyingViewModel viewModel = new Excel_greekUnderlyingViewModel(); viewModel.setFromSerial(item); this.excel_greekUnderlyingViewModel_.Add(viewModel); } }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_result serial_Excel_result = serial_Class as FpmlSerializedCSharp.Excel_result; this.calculationDate_ = StringConverter.xmlDateToDateTime(serial_Excel_result.CalculationDate_.ValueStr); FpmlSerializedCSharp.Excel_valueResult serial_excel_valueResult = serial_Excel_result.Excel_valueResult_; this.excel_valueResultViewModel_ = new Excel_valueResultViewModel(); this.excel_valueResultViewModel_.setFromSerial(serial_excel_valueResult); FpmlSerializedCSharp.Excel_greekResult serial_excel_greekResult = serial_Excel_result.Excel_greekResult_; this.excel_greekResultViewModel_ = new Excel_greekResultViewModel(); this.excel_greekResultViewModel_.setFromSerial(serial_excel_greekResult); FpmlSerializedCSharp.Excel_cashFlowsResult serial_excel_cashFlowsResult = serial_Excel_result.Excel_cashFlowsResult_; this.excel_cashFlowsResultViewModel_ = new Excel_cashFlowsResultViewModel(); this.excel_cashFlowsResultViewModel_.setFromSerial(serial_excel_cashFlowsResult); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_greekResult serial_Excel_greekResult = serial_Class as FpmlSerializedCSharp.Excel_greekResult; List <FpmlSerializedCSharp.Excel_greekUnderlying> serial_excel_greekUnderlying = serial_Excel_greekResult.Excel_greekUnderlying_; this.excel_greekUnderlyingViewModel_ = new ObservableCollection <Excel_greekUnderlyingViewModel>(); foreach (var item in serial_excel_greekUnderlying) { string type = item.Excel_type_.ValueStr; Excel_greekUnderlyingViewModel viewModel = Excel_greekUnderlyingViewModel.CreateExcel_greekUnderlying(type); viewModel.setFromSerial(item); this.excel_greekUnderlyingViewModel_.Add(viewModel); } this.theta_ = serial_Excel_greekResult.Theta_.ValueStr; this.rho_ = serial_Excel_greekResult.Rho_.ValueStr; }