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.
49 lines
1.3 KiB
49 lines
1.3 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 KinectStream _kinectStream;
|
|
public KinectStream KinectStream
|
|
{
|
|
get { return _kinectStream; }
|
|
set { _kinectStream = value; }
|
|
}
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
this.DataContext = this;
|
|
KinectStream = new ColorImageStream();
|
|
Debug.WriteLine(KinectStream.KinectManager.StatusText);
|
|
KinectStream.Start();
|
|
Debug.WriteLine(KinectStream.KinectManager.StatusText);
|
|
}
|
|
|
|
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
Debug.WriteLine(KinectStream.KinectManager.StatusText);
|
|
KinectStream.Stop();
|
|
}
|
|
}
|
|
}
|