/// <summary> /// 取得METEDownloadData.dat資料 /// </summary> /// <param name="cMETEDownloadData"></param> /// <returns></returns> public static bool GetMETEDownloadData(out METEDownloadData cMETEDownloadData) { cMETEDownloadData = new METEDownloadData(); try { string METEDownloadDat_dat = "METEDownloadData.dat"; string METEDownloadDatPath = string.Format(@"{0}\{1}", CaxEnv.GetGlobaltekTaskDir(), METEDownloadDat_dat); CaxPublic.ReadMETEDownloadData(METEDownloadDatPath, out cMETEDownloadData); } catch (System.Exception ex) { return(false); } return(true); }
/// <summary> /// 檢查METEDownloadData.dat是否存在 /// </summary> /// <returns></returns> public static bool CheckMETEDownloadData() { try { string METEDownloadData_dat = "METEDownloadData.dat"; string METEDownloadData_Path = string.Format(@"{0}\{1}", CaxEnv.GetGlobaltekTaskDir(), METEDownloadData_dat); if (!System.IO.File.Exists(METEDownloadData_Path)) { MessageBox.Show("METEDownloadData.dat不存在"); return(false); } } catch (System.Exception ex) { return(false); } return(true); }