Exemple #1
0
 public static string[] GetTariffs()
 {
     //Get available tariffs
     string[] tariffs = new string[_CzarLib.GetEffectiveTableSize];
     try {
         if (_CzarLib.GetEffectiveTableSize > 0)
         {
             for (int i = 0; i < _CzarLib.GetEffectiveTableSize; i++)
             {
                 tariffs[i] = _CzarLib.get_GetEffectiveTableRecord(i);
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Failed to get object.", ex); }
     return(tariffs);
 }
Exemple #2
0
 public string[] GetTariffs()
 {
     //Get available tariffs
     string[] tariffs;
     CZARCOMLib.czardllClass czarLib = null;
     try {
         czarLib = new CZARCOMLib.czardllClass();
         czarLib.InitializeCzar();
         tariffs = new string[czarLib.GetEffectiveTableSize];
         if (czarLib.GetEffectiveTableSize > 0)
         {
             for (int i = 0; i < czarLib.GetEffectiveTableSize; i++)
             {
                 tariffs[i] = czarLib.get_GetEffectiveTableRecord(i);
             }
         }
     }
     catch (Exception ex) { throw new FaultException <RateWareFault>(new RateWareFault(new ApplicationException(ex.Message, ex))); }
     finally {
         czarLib.EndCzar();
     }
     return(tariffs);
 }