Beispiel #1
0
        void OnDownFailed(FileDownLoad fdl)
        {
            switch (fdl.action)
            {
            case Action.DownFile:
                fdl._info = _cancel?"下载已暂停":"下载文件失败";
                break;

            case Action.CalcSize:
                fdl._info = "获取文件大小失败";
                break;
            }
            fdl._state = State.Failed;
            fdl.innerStop();
            EventMgr.single.PostEvent("DownFileEvent", fdl);
        }
Beispiel #2
0
 void OnDownComplete(FileDownLoad fdl)
 {
     fdl._state = State.Completed;
     fdl.innerStop();
     EventMgr.single.PostEvent("DownFileEvent", fdl);
 }