private void HandleConnectionStatusMessage(ConnectionStatusMessage Message) { if (Message.IsConnected) VisualStateManager.GoToState(this, "Connected", true); else VisualStateManager.GoToState(this, "NotConnected", true); }
void OnRacerConnectionStateChanged(object sender, RacerConnectionStateChangedEventArgs e) { ConnectionStatusMessage connectionMsg = new ConnectionStatusMessage(e.IsConnected); Messenger.Default.Send<ConnectionStatusMessage>(connectionMsg); }