wpf_player.AudioPlayerModel.Dispose C# (CSharp) Method

Dispose() public method

Disposes the player calling the close method
public Dispose ( ) : void
return void
        public void Dispose()
        {
            this.close();
        }

Usage Example

Example #1
0
 /// <summary>
 /// Method called when the dialog is closing. This calls the dispose for the view model.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Dispatcher_ShutdownStarted(object sender, EventArgs e)
 {
     if (vm != null)
     {
         vm.Dispose();
         vm = null;
     }
 }