private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
KinectStatus status = availableKinects[kinectsAvailableDataGrid.SelectedIndex].Status;
switch (status)
{
case KinectStatus.Connected:
{
//No help is needed if the Kinect is connected properly
break;
}
case KinectStatus.DeviceNotGenuine:
{
MessageBox.Show("The connected device is not genuine. Please attach a genuine Kinect.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.DeviceNotSupported:
{
MessageBox.Show("A Kinect for Xbox is connected. Please attach a Kinect for Windows sensor or install the Kinect SDK instead of the Kinect runtime.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.Disconnected:
{
MessageBox.Show("The Kinect device is disconnected. Please reconnect the Kinect sensor.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.Error:
{
MessageBox.Show("An unknown error has occured with the Kinect. Try restarting the computer?", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.Initializing:
{
MessageBox.Show("The Kinect is initializing. Please wait, the Kinect should be operational momentarily.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.InsufficientBandwidth:
{
MessageBox.Show("There is not enough bandwidth available on this USB port for the Kinect. Please move the Kinect to a different USB root node.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.NotPowered:
{
MessageBox.Show("The Kinect is not connected to AC power. Please plug in the Kinect's AC adapter.", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.NotReady:
{
MessageBox.Show("The Kinect is not ready to run. Please wait, the Kinect should be operational momentarily. If not, try restarting the computer?", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
case KinectStatus.Undefined:
{
MessageBox.Show("An unknown error has occured with the Kinect. Try restarting the computer?", "Connection Help", MessageBoxButton.OK, MessageBoxImage.Warning);
break;
}
}
}