C# Класс Microsoft.Samples.Kinect.RecordAndPlaybackBasics.MainWindow

Interaction logic for the MainWindow
Наследование: System.Windows.Window, INotifyPropertyChanged, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes all unmanaged resources for the class

MainWindow ( ) : System

Initializes a new instance of the MainWindow class.

Приватные методы

Метод Описание
MainWindow_Closing ( object sender, CancelEventArgs e ) : void

Execute shutdown tasks

OpenFileForPlayback ( ) : string

Launches the OpenFileDialog window to help user find/select an event file for playback

PlayButton_Click ( object sender, RoutedEventArgs e ) : void

Handles the user clicking on the Play button

PlaybackClip ( string filePath ) : void

Plays back a .xef file to the Kinect sensor

RecordButton_Click ( object sender, RoutedEventArgs e ) : void

Handles the user clicking on the Record button

RecordClip ( string filePath ) : void

Records a new .xef file

SaveRecordingAs ( ) : string

Launches the SaveFileDialog window to help user create a new recording file

Sensor_IsAvailableChanged ( object sender, IsAvailableChangedEventArgs e ) : void

Handles the event in which the sensor becomes unavailable (E.g. paused, closed, unplugged).

UpdateState ( ) : void

Enables/Disables the record and playback buttons in the UI

Описание методов

Dispose() публичный Метод

Disposes all unmanaged resources for the class
public Dispose ( ) : void
Результат void

MainWindow() публичный Метод

Initializes a new instance of the MainWindow class.
public MainWindow ( ) : System
Результат System