コード例 #1
0
        /// <summary>
        ///     Execute start up tasks
        /// </summary>
        /// <param name="sender">object sending the event</param>
        /// <param name="e">event arguments</param>
        private void App_Startup(object sender, StartupEventArgs e)
        {
            ShutdownMode = ShutdownMode.OnLastWindowClose;

            // Initialize logger
            XmlConfigurator.Configure();
            Logger.Debug("App Startup");

            ConfigurationFlags = new Dictionary <JointType, bool>();


            // TODO: Add a flag to start up the simulator if desired -- should be a flag passable somehow @ app startup

            /*KinectSimulator kinectSimulator = new KinectSimulator(this.queue);
             * kinectSimulator.Top = 200;
             * kinectSimulator.Left = 600;
             * kinectSimulator.Show();*/

            var kinectProcessor = new KinectProcessor();

            var sessionManager = new SessionManager();

            var udpReceiver = new UDPReceiver(8080, sessionManager, kinectProcessor);

            // Initialize main GUI
            var configurationTool = new ConfigurationTool(sessionManager, kinectProcessor)
            {
                Top  = 0,
                Left = 0
            };

            configurationTool.Show();
        }
コード例 #2
0
        /// <summary>
        ///     Execute start up tasks
        /// </summary>
        /// <param name="sender">object sending the event</param>
        /// <param name="e">event arguments</param>
        private void App_Startup(object sender, StartupEventArgs e)
        {
            ShutdownMode = ShutdownMode.OnLastWindowClose;

            // Initialize logger
            XmlConfigurator.Configure();
            Logger.Debug("App Startup");

            ConfigurationFlags = new Dictionary<JointType, bool>();


            // TODO: Add a flag to start up the simulator if desired -- should be a flag passable somehow @ app startup
            /*KinectSimulator kinectSimulator = new KinectSimulator(this.queue);
            kinectSimulator.Top = 200;
            kinectSimulator.Left = 600;
            kinectSimulator.Show();*/

            var kinectProcessor = new KinectProcessor();

			var sessionManager = new SessionManager();

			var udpReceiver = new UDPReceiver(8080, sessionManager, kinectProcessor);

            // Initialize main GUI
            var configurationTool = new ConfigurationTool(sessionManager, kinectProcessor)
            {
                Top = 0,
                Left = 0
            };
            configurationTool.Show();
        }