public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.UnderlyingInfo_para serial_UnderlyingInfo_para = serial_Class as FpmlSerializedCSharp.UnderlyingInfo_para; List <FpmlSerializedCSharp.Underlying_para> serial_underlying_para = serial_UnderlyingInfo_para.Underlying_para_; this.underlying_paraViewModel_ = new ObservableCollection <Underlying_paraViewModel>(); foreach (var item in serial_underlying_para) { string type = item.Excel_type_.ValueStr; Underlying_paraViewModel viewModel = Underlying_paraViewModel.CreateUnderlying_para(type); viewModel.setFromSerial(item); this.underlying_paraViewModel_.Add(viewModel); } FpmlSerializedCSharp.CorrelationInfo_para serial_correlationInfo_para = serial_UnderlyingInfo_para.CorrelationInfo_para_; string correlationInfo_paratype = serial_correlationInfo_para.Excel_type_.ValueStr; this.correlationInfo_paraViewModel_ = CorrelationInfo_paraViewModel.CreateCorrelationInfo_para(correlationInfo_paratype); this.correlationInfo_paraViewModel_.setFromSerial(serial_correlationInfo_para); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.UnderlyingInfo_para serial_UnderlyingInfo_para = serial_Class as FpmlSerializedCSharp.UnderlyingInfo_para; List<FpmlSerializedCSharp.Underlying_para> serial_underlying_para = serial_UnderlyingInfo_para.Underlying_para_; this.underlying_paraViewModel_ = new ObservableCollection<Underlying_paraViewModel>(); foreach (var item in serial_underlying_para) { string type = item.Excel_type_.ValueStr; Underlying_paraViewModel viewModel = Underlying_paraViewModel.CreateUnderlying_para(type); viewModel.setFromSerial(item); this.underlying_paraViewModel_.Add(viewModel); } FpmlSerializedCSharp.CorrelationInfo_para serial_correlationInfo_para = serial_UnderlyingInfo_para.CorrelationInfo_para_; string correlationInfo_paratype = serial_correlationInfo_para.Excel_type_.ValueStr; this.correlationInfo_paraViewModel_ = CorrelationInfo_paraViewModel.CreateCorrelationInfo_para(correlationInfo_paratype); this.correlationInfo_paraViewModel_.setFromSerial(serial_correlationInfo_para); }