Пример #1
0
 /// <summary>
 /// 檢查OperationArray.dat是否存在
 /// </summary>
 /// <returns></returns>
 public static bool CheckOperationArray()
 {
     try
     {
         string OperationArray_dat    = "OperationArray.dat";
         string OperationArrayDatPath = string.Format(@"{0}\{1}", CaxPE.GetPEConfigDir(), OperationArray_dat);
         if (!System.IO.File.Exists(OperationArrayDatPath))
         {
             MessageBox.Show("OperationArray.dat不存在");
             return(false);
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
 /// <summary>
 /// 檢查CustomerName.dat是否存在
 /// </summary>
 /// <returns></returns>
 public static bool CheckCustomerName()
 {
     try
     {
         string CustomerName_dat    = "CustomerName.dat";
         string CustomerNameDatPath = string.Format(@"{0}\{1}", CaxPE.GetPEConfigDir(), CustomerName_dat);
         if (!System.IO.File.Exists(CustomerNameDatPath))
         {
             MessageBox.Show("CustomerName.dat不存在");
             return(false);
         }
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }