void useKinect_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "UseKinect")
{
//The ForceGUIUpdate method can cause this to get hit again, so we block it from updating again if it is already in the process of updating
if (!updating)
{
updating = true;
//TODO: Handle if a Kinect is unplugged from the system (which doesn't call this method but can break things badly)
//Note, there is some logic to the order these are called in, do not rearrange without understanding that logic!
renumberKinectIDs();
reorderKinectSettings();
launchAndKillKinects();
UpdatePageListing();
GenerateImageSourcePickerLists();
GenerateAudioSourceList();
GenerateSkeletonDataGridData();
//FOR DEBUGGING ONLY!!!!
//WriteOutKinectOrders();
updating = false;
}
}
}