public void Load(string filePath)
 {
     try {
         playlist = PlayList.Load(filePath);
         playlistWidget.Load(playlist);
     } catch (Exception e) {
         Log.Exception(e);
         MessagePopup.PopupMessage(playlistWidget as Gtk.Widget, MessageType.Error,
                                   Catalog.GetString("The file you are trying to load is not a playlist or it's not compatible with the current version"));
     }
 }
Exemple #2
0
 public void Load(string filePath)
 {
     try {
         playlist = PlayList.Load(filePath);
         playlistWidget.Load(playlist);
     } catch (Exception e) {
         Log.Exception(e);
         guiToolkit.ErrorMessage(Catalog.GetString("The file you are trying to load " +
                                                   "is not a playlist or it's not compatible with the current version"));
     }
 }