public void BeginInitialize() { this.floodFill = new FloodFill(); this.mode = ProgramMode.Idle; this.classifier = null; this.trainer = null; this.featureFilePath = null; this.modelFilePath = null; GestureStudio.DisplayLoadingWindow("Loading Kinect Sensor..."); ThreadPool.QueueUserWorkItem((state) => { // init kinect this.StartKinectSensor(); GestureStudio.HideLoadingWindow(); this.UpdateStatus("Ready"); }); }