Ejemplo n.º 1
0
 /// <summary>
 /// Sets the operation mode.
 /// </summary>
 /// <param name="portlist">The portlist.</param>
 /// <param name="proxy">The proxy.</param>
 /// <param name="clientGuid">The client GUID.</param>
 /// <param name="operationMode">if set to <c>true</c> [operation mode].</param>
 private static void WriteOperationMode(string portName, SmlComServiceClient proxy, Guid clientGuid, bool operationMode)
 {
     Console.WriteLine("Setting operation mode to: " + operationMode);
     proxy.WriteIsOperationModeEdl40(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), operationMode);
     var booleanResult = proxy.ReadIsOperationModeEdl40(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Operation mode read: " + Stringify(booleanResult));
     Console.WriteLine();
 }