Exemplo n.º 1
0
        private void InitRelayCommands()
        {
            ResetCommand = new RelayCommand(() =>
            {
                if (this.KinectSensor == null)
                {
                    StatusMessage = Properties.Resources.ConnectDeviceFirst;
                    return;
                }

                // reset the reconstruction and update the status text
                ResetFusion();
                StatusMessage = Properties.Resources.ResetReconstruction;
            });

            ExportCommand = new RelayCommand(() =>
            {
                if (FusionManager != null)
                {
                    FusionManager.ExportMesh();
                }
            });
        }