/// <summary> /// Constructor, uses the constructor of CanvasWindow as well to pass the desired title name /// </summary> /// <param name="touchWall"></param> private MultiTouchWindow(TouchWallApp touchWall) : base(touchWall, "Touch Wall - Multi Touch Mode") { InitializeComponent(); _touchWall = touchWall; _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += MapPoints; }
/// <summary> /// Constructor to initialize /// </summary> /// <param name="touchWall">TouchWallApp Object</param> /// <param name="winTitle">Title of the window</param> public CanvasWindow(TouchWallApp touchWall, String winTitle) { InitializeComponent(); _touchWall = touchWall; _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += MapPoints; Title = winTitle; }
/// <summary> /// Returns the MultiTouchWindow instance. We only want one of these /// </summary> /// <param name="touchWall"></param> /// <returns>Returns the MultiTouchWindow instance</returns> public static CanvasWindow GetMultiTouchWindowInstance(TouchWallApp touchWall) { if (Instance == null) { Instance = new MultiTouchWindow(touchWall); } return(Instance); }
public static PreviewWindow OpenPreviewWindow(TouchWallApp TouchWall) { if (_instance == null) { _instance = new PreviewWindow(TouchWall); } return(_instance); }
/// <summary> /// Constructor /// </summary> public MainWindow() { // Initialize the components (controls) of the window InitializeComponent(); _touchWall = new TouchWallApp(this); // Wire handler for frame arrival _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += _touchWall.FrameDataManager.Reader_FrameArrived; // Update the UI on each frame _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += UpdateLabels; // Set IsAvailableChanged event notifier TouchWallApp.KinectSensor.IsAvailableChanged += Sensor_IsAvailableChanged; DataContext = this; UpdateAllLabels(); }
private PreviewWindow(TouchWallApp TouchWall) { _touchWall = TouchWall; //_touchWall.FrameDataManager.DepthFrameReader.FrameArrived += _touchWall.FrameDataManager.Reader_FrameArrived; InitializeComponent(); }