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