Esempio n. 1
0
 /// <summary>
 /// Writes the aplus tariff.
 /// </summary>
 /// <param name="portlist">The portlist.</param>
 /// <param name="proxy">The proxy.</param>
 /// <param name="clientGuid">The client GUID.</param>
 /// <param name="tariffNo">The tariff no.</param>
 private static void WriteAplusTariff(string portName, SmlComServiceClient proxy, Guid clientGuid, byte tariffNo)
 {
     Console.WriteLine("Setting +A tariff to no: " + tariffNo);
     proxy.WriteCurrentAplusTariff(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), tariffNo);
     Console.WriteLine("Tariff was set.");
     Console.WriteLine();
 }