Пример #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public SurfaceWindow1()
 {
     InitializeComponent();
     watchingWindow = new KinectWindow();
     watchingWindow.Show();
     WindowsWidth  = (int)this.Width;
     WindowsHeight = (int)this.Height;
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            //DemarageClassique();

            try
            {
                KinectWindow failOverWindow = new KinectWindow(this);
                failOverWindow.Show();
            }
            catch (Exception ex)
            {
                string err = ex.ToString();
                Console.WriteLine(err);
                Console.WriteLine(ex.Message);
                throw;
            }
        }