コード例 #1
0
 public static void Load()
 {
     try
     {
         DisposeAppConfigDT();
         AppConfigDataTable = ms.GetAppConfig();
         if (AppConfigDataTable.Rows.Count > 0)
         {
             Log.AppendText("Load application configuration completed.");
         }
         else
         {
             string sError = "Load application configuration failed.";
             Log.AppendText(sError);
             throw new Exception(sError);
         }
     }
     catch (Exception ex)
     {
         Log.AppendText(ex.Message);
         DisposeAppConfigDT();
         throw new Exception(ex.Message);
     }
 }