private void OnIdListSelectionChanged(object sender, SelectionChangedEventArgs e) { broadcastPanel.Visibility = Visibility.Visible; ComboBox comboBox = (sender as ComboBox); selectedBodyID = (BodyIdWrapper)comboBox.SelectedItem; }
private void ManageTrackedBody(Body body) { Drawing correspondingSkeletton = CheckExistingSkeletons(body.TrackingId); if (correspondingSkeletton == null) { BodyIdWrapper newWrapper = new BodyIdWrapper(body.TrackingId); currentViewModel.AddBodyID(newWrapper); correspondingSkeletton = new Drawing(newWrapper, currentKinectSensor.CoordinateMapper); skelettonsDrawing.Add(correspondingSkeletton); } correspondingSkeletton.DrawSkeleton(canvas, body); }
public Drawing(BodyIdWrapper _idWrapper, CoordinateMapper _coordinateMapper) { associatedBodyID = _idWrapper; coordinateMapper = _coordinateMapper; }