Esempio n. 1
0
 /// <summary>
 /// 取得template_post.dat內容
 /// </summary>
 /// <returns></returns>
 public static string[] GetTemplatePostData()
 {
     string[] DatData = new string[] {};
     try
     {
         string TemplatePostPath = string.Format(@"{0}\{1}", CaxEnv.GetGlobaltekPostProcessorDir(), "template_post.dat");
         return(DatData = System.IO.File.ReadAllLines(TemplatePostPath));
     }
     catch (System.Exception ex)
     {
         return(DatData);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 檢查template_post.dat是否存在
 /// </summary>
 /// <returns></returns>
 public static bool CheckTemplatePostDat()
 {
     try
     {
         string TemplatePost_dat      = "template_post.dat";
         string TemplatePostData_Path = string.Format(@"{0}\{1}", CaxEnv.GetGlobaltekPostProcessorDir(), TemplatePost_dat);
         if (!System.IO.File.Exists(TemplatePostData_Path))
         {
             MessageBox.Show("template_post.dat不存在");
             return(false);
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }