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;
 }
Exemplo n.º 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);
        }