You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
using Lib;
|
|
using Microsoft.Kinect;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace WpfApp
|
|
{
|
|
/// <summary>
|
|
/// Logique d'interaction pour MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
private KinectManager _kinectManager;
|
|
public KinectManager kinectManager
|
|
{
|
|
get { return _kinectManager; }
|
|
set { _kinectManager = value; }
|
|
}
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
kinectManager = new KinectManager();
|
|
Debug.WriteLine(kinectManager.StatusText);
|
|
kinectManager.ChangeToColorStream();
|
|
Debug.WriteLine(kinectManager.StatusText);
|
|
kinectManager.StartSensor();
|
|
Debug.WriteLine(kinectManager.StatusText);
|
|
DataContext = this;
|
|
}
|
|
|
|
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
Debug.WriteLine(kinectManager.StatusText);
|
|
kinectManager.StopSensor();
|
|
}
|
|
}
|
|
}
|