public override void Enter(AutoUpdateMgr target) { string writePath = target.WritePath; if (string.IsNullOrEmpty(writePath)) { target.EndAutoUpdate(); return; } m_FileListName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cFileListTxt); m_VersionName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cVersionTxt); if (!File.Exists(m_FileListName)) { CopyFileList(); } else { if (!File.Exists(m_VersionName)) { CopyVersion(); } else { ToNextState(); } } }
public override void Enter(AutoUpdateMgr target) { string ver = target.CurrServeResrVersion; if (string.IsNullOrEmpty(ver)) { target.EndAutoUpdate(); return; } string writePath = target.WritePath; if (string.IsNullOrEmpty(writePath)) { target.EndAutoUpdate(); return; } target.TotalDownM = 0; target.CurDownM = 0; DoGetServerFileList(); }
public override void Enter(AutoUpdateMgr target) { string writePath = target.WritePath; if (string.IsNullOrEmpty(writePath)) { target.EndAutoUpdate(); return; } m_FileListName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cFileListTxt); m_VersionName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cVersionTxt); m_UpdateName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cUpdateTxt); DoNextCopyVersion(); }