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

Interaction logic for the MainWindow
Inheritance: System.Windows.Window, INotifyPropertyChanged, IDisposable
Afficher le fichier Open project: angelaHillier/RecordAndPlaybackBasics-WPF

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes all unmanaged resources for the class

MainWindow ( ) : System

Initializes a new instance of the MainWindow class.

Private Methods

Méthode 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 méthode

Disposes all unmanaged resources for the class
public Dispose ( ) : void
Résultat void

MainWindow() public méthode

Initializes a new instance of the MainWindow class.
public MainWindow ( ) : System
Résultat System