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.
50 lines
1.1 KiB
50 lines
1.1 KiB
using CommunityToolkit.Mvvm.Input;
|
|
using KinectConnection;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
|
|
namespace KinectSensorStreams.ViewModel
|
|
{
|
|
public class MainWindowVM
|
|
{
|
|
#region Properties
|
|
|
|
public System.Windows.Media.Brush EllipseColor { get; set; }
|
|
|
|
public string KinectStateText { get; set; }
|
|
|
|
public ICommand StartCommand { get; set; }
|
|
|
|
public KinectManager KinectManager { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public MainWindowVM()
|
|
{
|
|
EllipseColor = new SolidColorBrush(Colors.Green);
|
|
KinectManager = new KinectManager();
|
|
StartCommand = new RelayCommand(Start);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
private void Start()
|
|
{
|
|
KinectManager.kinectSensor.Open();
|
|
EllipseColor = new SolidColorBrush(Colors.Green);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|