/// <summary> /// Initializes a new instance of the Graph class. /// </summary> public GraphWindow(Microsoft.Samples.Kinect.SkeletonBasics.MainWindow owningWindow) { InitializeComponent(); this.owningWindow = owningWindow; MaxWindowDistSeen = 0; if (CurrentObjectBag.SCurrentGestureValidator != null) { CurrentObjectBag.SCurrentGestureValidator.OnDistanceUpdated += new UpdateTargetDistance(AddDistance); } CurrentObjectBag.SOnGestureValidatorChanged += SetGestureValidator; }
/// <summary> /// Initializes a new instance of the Graph class. /// </summary> public GraphWindow(Microsoft.Samples.Kinect.SkeletonBasics.MainWindow owningWindow) { InitializeComponent(); this.owningWindow = owningWindow; MaxWindowDistSeen = 0; if (CurrentObjectBag.SCurrentGestureValidator != null) { CurrentObjectBag.SCurrentGestureValidator.OnDistanceUpdated += new UpdateTargetDistance(AddDistance); } CurrentObjectBag.SOnGestureValidatorChanged += SetGestureValidator; }