Example #1
0
        /// <summary>
        /// Return Instance Of DISelection Controls Source class
        /// </summary>
        /// <param name="selectionType">Selection Type for </param>
        /// <returns></returns>
        public static BaseSelection CreateInstance(DISelectionType selectionType)
        {
            BaseSelection RetVal = null;

            switch (selectionType)
            {
            case DISelectionType.Timeperiod:
                RetVal = new TimeperiodSelectionSource();
                break;

            case DISelectionType.Unit:
                RetVal = new UnitSelectionSource();
                break;

            case DISelectionType.Subgroups:
                RetVal = new SubgroupValSelectionSource();
                break;

            case DISelectionType.IUS:
                RetVal = new IUSSelectionSource();
                break;

            default:
                break;
            }
            return(RetVal);
        }
        /// <summary>
        /// Return Instance Of DISelection Controls Source class
        /// </summary>
        /// <param name="selectionType">Selection Type for </param>
        /// <returns></returns>
        public static BaseSelection CreateInstance(DISelectionType selectionType)
        {
            BaseSelection RetVal = null;

            switch (selectionType)
            {
                case DISelectionType.Timeperiod:
                    RetVal = new TimeperiodSelectionSource();
                    break;

                case DISelectionType.Unit:
                    RetVal = new UnitSelectionSource();
                    break;

                case DISelectionType.Subgroups:
                    RetVal = new SubgroupValSelectionSource();
                    break;
                case DISelectionType.IUS :
                    RetVal = new IUSSelectionSource();
                    break;
                default:
                    break;
            }
            return RetVal;
        }