public static ReturnCalculationViewModel CreateReturnCalculation(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculation serial_ReturnCalculation = serial_Class as FpmlSerializedCSharp.ReturnCalculation;
            string typeStr = serial_ReturnCalculation.Type_.ValueStr;

            return(ReturnCalculationViewModel.CreateReturnCalculation(typeStr));
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculationInfo serial_ReturnCalculationInfo = serial_Class as FpmlSerializedCSharp.ReturnCalculationInfo;

            List <FpmlSerializedCSharp.ReturnCalculation> serial_returnCalculation = serial_ReturnCalculationInfo.ReturnCalculation_;

            this.returnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>();
            foreach (var item in serial_returnCalculation)
            {
                string type = item.Type_.ValueStr;
                ReturnCalculationViewModel viewModel = ReturnCalculationViewModel.CreateReturnCalculation(type);
                viewModel.setFromSerial(item);
                this.returnCalculationViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.OperatorND serial_operatorND = serial_ReturnCalculationInfo.OperatorND_;
            string operatorNDtype = serial_operatorND.Type_.ValueStr;

            this.operatorNDViewModel_ = OperatorNDViewModel.CreateOperatorND(operatorNDtype);
            this.operatorNDViewModel_.setFromSerial(serial_operatorND);

            ////this.view_ = new ReturnCalculationInfoView();
            //this.view_.DataContext = this;
        }