Example #1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CorrelationInfo_para serial_CorrelationInfo_para = serial_Class as FpmlSerializedCSharp.CorrelationInfo_para;

            this.dimension_ = serial_CorrelationInfo_para.Dimension_.ValueStr;

            List <FpmlSerializedCSharp.Correlation_para> serial_correlation_para = serial_CorrelationInfo_para.Correlation_para_;

            this.correlation_paraViewModel_ = new ObservableCollection <Correlation_paraViewModel>();
            foreach (var item in serial_correlation_para)
            {
                string type = item.Excel_type_.ValueStr;
                Correlation_paraViewModel viewModel = Correlation_paraViewModel.CreateCorrelation_para(type);
                viewModel.setFromSerial(item);
                this.correlation_paraViewModel_.Add(viewModel);
            }
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CorrelationInfo_para serial_CorrelationInfo_para = serial_Class as FpmlSerializedCSharp.CorrelationInfo_para;

            this.dimension_ = serial_CorrelationInfo_para.Dimension_.ValueStr;

            List <FpmlSerializedCSharp.Correlation_para> serial_correlation_para = serial_CorrelationInfo_para.Correlation_para_;

            this.correlation_paraViewModel_ = new ObservableCollection <Correlation_paraViewModel>();
            foreach (var item in serial_correlation_para)
            {
                Correlation_paraViewModel viewModel = new Correlation_paraViewModel();
                viewModel.setFromSerial(item);
                this.correlation_paraViewModel_.Add(viewModel);
            }

            this.view_             = new CorrelationInfo_paraView();
            this.view_.DataContext = this;
        }
        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);
        }