Beispiel #1
0
        public static RecommendedSourceBase CreateInstance(RecommendedSourceViewType viewType, UserSelection userSelections)
        {
            RecommendedSourceBase RetVal = null;

            switch (viewType)
            {
            case RecommendedSourceViewType.Area:
                RetVal = new RecommendedSourceArea();
                break;

            case RecommendedSourceViewType.IUS:
                RetVal = new RecommendedSourceIUS();
                break;

            case RecommendedSourceViewType.Timeperiod:
                RetVal = new RecommendedSourceTimeperiod();
                break;

            default:
                break;
            }

            RetVal.UserSelections = userSelections;

            return(RetVal);
        }
        public static RecommendedSourceBase CreateInstance(RecommendedSourceViewType viewType,UserSelection userSelections)
        {
            RecommendedSourceBase RetVal=null;

            switch (viewType)
            {
                case RecommendedSourceViewType.Area:
                    RetVal = new RecommendedSourceArea();
                    break;

                case RecommendedSourceViewType.IUS:
                    RetVal = new RecommendedSourceIUS();
                    break;

                case RecommendedSourceViewType.Timeperiod:
                    RetVal = new RecommendedSourceTimeperiod();
                    break;

                default:
                    break;
            }

            RetVal.UserSelections = userSelections;

            return RetVal;
        }