|
@@ -82,11 +82,11 @@ public class MainWindowViewModel : INotifyPropertyChanged
|
|
|
HexValue = ComputeHex(DimmerValue, RedValue, GreenValue, BlueValue);
|
|
|
|
|
|
Transport = new RpcClientPipeTransport("SwitchTransport");
|
|
|
- Transport.Connect();
|
|
|
Transport.OnOpen += TransportOpen;
|
|
|
Transport.OnClose += TransportClose;
|
|
|
Transport.OnException += TransportException;
|
|
|
Transport.OnMessage += TransportMessage;
|
|
|
+ Transport.Connect();
|
|
|
}
|
|
|
|
|
|
private void TransportMessage(IRpcTransport transport, RpcTransportMessageArgs e)
|