private void HandleTargetConnectionStateChanged(object sender, TargetConnectionStateChangedEventArgs args) { MainScreen.ChangeConnectionProperties(!args.IsTargetConnected); MainScreen.ChangeConnectToggleButtonState(!args.IsTargetConnected); }