C# Class Microsoft.Samples.Kinect.RecordAndPlaybackBasics.MainWindow

Interaction logic for the MainWindow
Inheritance: System.Windows.Window, INotifyPropertyChanged, IDisposable
显示文件 Open project: angelaHillier/RecordAndPlaybackBasics-WPF

Public Methods

Method Description
Dispose ( ) : void

Disposes all unmanaged resources for the class

MainWindow ( ) : System

Initializes a new instance of the MainWindow class.

Private Methods

Method Description
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

Method Details

Dispose() public method

Disposes all unmanaged resources for the class
public Dispose ( ) : void
return void

MainWindow() public method

Initializes a new instance of the MainWindow class.
public MainWindow ( ) : System
return System