Ejemplo n.º 1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_underlyingCalcID        serial_Excel_underlyingCalcID        = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcID;
            FpmlSerializedCSharp.Excel_averageUnderlyingCalcID serial_Excel_averageUnderlyingCalcID = serial_Excel_underlyingCalcID.Excel_averageUnderlyingCalcID_;

            List <FpmlSerializedCSharp.Excel_selectedUnderlying> serial_excel_selectedUnderlying = serial_Excel_averageUnderlyingCalcID.Excel_selectedUnderlying_;

            this.excel_selectedUnderlyingViewModel_ = new ObservableCollection <Excel_selectedUnderlyingViewModel>();
            foreach (var item in serial_excel_selectedUnderlying)
            {
                Excel_selectedUnderlyingViewModel viewModel = new Excel_selectedUnderlyingViewModel();
                viewModel.setFromSerial(item);
                this.excel_selectedUnderlyingViewModel_.Add(viewModel);
            }

            this.eventDate_ = serial_Excel_averageUnderlyingCalcID.EventDate_.DateTimeValue();

            this.weight_ = new ObservableCollection <string>();
            foreach (var item in serial_Excel_averageUnderlyingCalcID.Weight_)
            {
                this.weight_.Add(item.ValueStr);
            }
        }
Ejemplo n.º 2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_underlyingCalcID        serial_Excel_underlyingCalcID        = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcID;
            FpmlSerializedCSharp.Excel_averageUnderlyingCalcID serial_Excel_averageUnderlyingCalcID = serial_Excel_underlyingCalcID.Excel_averageUnderlyingCalcID_;

            List <FpmlSerializedCSharp.Excel_selectedUnderlying> serial_excel_selectedUnderlying = serial_Excel_averageUnderlyingCalcID.Excel_selectedUnderlying_;

            this.excel_selectedUnderlyingViewModel_ = new ObservableCollection <Excel_selectedUnderlyingViewModel>();
            foreach (var item in serial_excel_selectedUnderlying)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_selectedUnderlyingViewModel viewModel = Excel_selectedUnderlyingViewModel.CreateExcel_selectedUnderlying(type);
                viewModel.setFromSerial(item);
                this.excel_selectedUnderlyingViewModel_.Add(viewModel);
            }

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_averageUnderlyingCalcID.EventDate_.ValueStr);

            this.weightViewModel_ = new ObservableCollection <WeightViewModel>();
            foreach (var item in serial_Excel_averageUnderlyingCalcID.Weight_)
            {
                this.value_.Add(item.ValueStr);
            }
        }