public static void Delete_Execute(object parameter) { var newWin = new PlaylistWindow(); newWin.ShowDialog(); if (newWin.bHasReturned == true) File.Delete(newWin.playlist.Path); }
public static void Add_Execute(object parameter) { ViewModelPlayer context = parameter as ViewModelPlayer; var newWin = new PlaylistWindow(); newWin.ShowDialog(); if (newWin.bHasReturned == true) { string path = context._media.Source.ToString(); newWin.playlist.AddToPlaylist(path, false); } }
public static void Modify_Execute(object parameter) { var newWin = new PlaylistWindow(); newWin.ShowDialog(); if (newWin.bHasReturned == true) { #warning Doit ouvrir la fenetre "modifierPlaylist" } }
public static void Open_Execute(object parameter) { ViewModelPlayer context = parameter as ViewModelPlayer; var newWin = new PlaylistWindow(); newWin.ShowDialog(); if (newWin.bHasReturned == true) { context._playlist = newWin.playlist; if (context._playlist.Empty() == false) context._media.Source = new Uri(context._playlist.Files[0].Path); context._media.Play(); } }