private static void WriteEnableGridOption(string portName, SmlComServiceClient proxy, Guid clientGuid, bool isOn) { Console.WriteLine("Setting Grid Optionto: " + isOn); proxy.WriteEnableGridOption(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), isOn); var result = proxy.ReadEnableGridOption(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName)); Console.WriteLine("Grid Option read: " + result.Data); Console.WriteLine(); }