예제 #1
0
        internal static IDataPortalServer Factory()
        {
            IDataPortalServer dps = null;

            DataPortalType dpt = DataPortalType.LCL;
            switch (dpt)
            {
                case DataPortalType.Final:
                    dps = new FinalDataPortal();
                    break;
                case DataPortalType.LCL:
                    dps = new LCLDataPortal();
                    break;
                default:
                    break;
            }
            return dps;
        }
예제 #2
0
        internal static IDataPortalServer Factory()
        {
            IDataPortalServer dps = null;

            DataPortalType dpt = DataPortalType.LCL;

            switch (dpt)
            {
            case DataPortalType.Final:
                dps = new FinalDataPortal();
                break;

            case DataPortalType.LCL:
                dps = new LCLDataPortal();
                break;

            default:
                break;
            }
            return(dps);
        }