public static IDownLoadFile CreateDownLoadFile(DownLoadType DLT, string URL)
 {
     IDownLoadFile _file;
     switch (DLT)
     {
         case DownLoadType.HttpDownLoad:
             _file = new HttpDownLoadFile(URL);
             break;
         default:
             _file = new HttpDownLoadFile(URL);
             break;
     }
     return _file;
 }
예제 #2
0
        public static IDownLoadFile CreateDownLoadFile(DownLoadType DLT, string URL)
        {
            IDownLoadFile _file;

            switch (DLT)
            {
            case DownLoadType.HttpDownLoad:
                _file = new HttpDownLoadFile(URL);
                break;

            default:
                _file = new HttpDownLoadFile(URL);
                break;
            }
            return(_file);
        }