private static void WriteSwitchingProgramNumber(string portName, SmlComServiceClient proxy, Guid clientGuid, string programNumberText)
 {
     Console.WriteLine("Setting switching program no to: " + programNumberText);
     proxy.WriteTariffSwitchingProgramNumber(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), programNumberText);
     Console.WriteLine("Switching program was set.");
     Console.WriteLine();
 }