|
|
|
@ -9,14 +9,14 @@ namespace Linaris
|
|
|
|
|
{
|
|
|
|
|
public partial class LocalFilesPage : ContentPage
|
|
|
|
|
{
|
|
|
|
|
private ObservableCollection<CustomTitle> customTitles = App.Manager.GetCustomTitles();
|
|
|
|
|
private ObservableCollection<CustomTitle> customTitles = (Application.Current as App).Manager.GetCustomTitles();
|
|
|
|
|
|
|
|
|
|
public ObservableCollection<CustomTitle> CustomTitles
|
|
|
|
|
{
|
|
|
|
|
get => customTitles;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<Playlist> playlists = App.Manager.GetPlaylists();
|
|
|
|
|
private ObservableCollection<Playlist> playlists = (Application.Current as App).Manager.GetPlaylists();
|
|
|
|
|
|
|
|
|
|
public ObservableCollection<Playlist> Playlists
|
|
|
|
|
{
|
|
|
|
@ -69,7 +69,7 @@ namespace Linaris
|
|
|
|
|
|
|
|
|
|
void AddCustomTitle(CustomTitle customTitle)
|
|
|
|
|
{
|
|
|
|
|
App.Manager.AddCustomTitle(customTitle);
|
|
|
|
|
(Application.Current as App).Manager.AddCustomTitle(customTitle);
|
|
|
|
|
customTitles.Add(customTitle);
|
|
|
|
|
ResetAll(this, null);
|
|
|
|
|
}
|
|
|
|
@ -128,7 +128,7 @@ namespace Linaris
|
|
|
|
|
Playlist playlist = new Playlist(entry.Text, "", "none.png");
|
|
|
|
|
if (!IsInPlaylists(playlist))
|
|
|
|
|
{
|
|
|
|
|
App.Manager.AddPlaylist(playlist);
|
|
|
|
|
(Application.Current as App).Manager.AddPlaylist(playlist);
|
|
|
|
|
playlists.Add(playlist);
|
|
|
|
|
}
|
|
|
|
|
if(entry.BindingContext is CustomTitle customTitle)
|
|
|
|
@ -148,7 +148,7 @@ namespace Linaris
|
|
|
|
|
{
|
|
|
|
|
if (button.BindingContext is CustomTitle titleToRemove)
|
|
|
|
|
{
|
|
|
|
|
App.Manager.RemoveCustomTitle(titleToRemove);
|
|
|
|
|
(Application.Current as App).Manager.RemoveCustomTitle(titleToRemove);
|
|
|
|
|
customTitles.Remove(titleToRemove);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|