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; }
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); }