diff --git a/Sources/Linaris/AlbumPage.xaml b/Sources/Linaris/AlbumPage.xaml
index 9aebfa2..7f15aca 100644
--- a/Sources/Linaris/AlbumPage.xaml
+++ b/Sources/Linaris/AlbumPage.xaml
@@ -8,10 +8,6 @@
Style="{StaticResource PageFlyoutTrigger}">
-
-
-
-
diff --git a/Sources/Linaris/FooterPage.xaml b/Sources/Linaris/FooterPage.xaml
index 36a4be3..62a8718 100644
--- a/Sources/Linaris/FooterPage.xaml
+++ b/Sources/Linaris/FooterPage.xaml
@@ -17,7 +17,7 @@
-
+
diff --git a/Sources/Linaris/MainPage.xaml b/Sources/Linaris/MainPage.xaml
index 846dbe6..b857aca 100644
--- a/Sources/Linaris/MainPage.xaml
+++ b/Sources/Linaris/MainPage.xaml
@@ -20,79 +20,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/Linaris/MainPage.xaml.cs b/Sources/Linaris/MainPage.xaml.cs
index d6caaeb..82c9d21 100644
--- a/Sources/Linaris/MainPage.xaml.cs
+++ b/Sources/Linaris/MainPage.xaml.cs
@@ -1,20 +1,26 @@
-namespace Linaris;
+using Model;
+using System.Collections.ObjectModel;
+
+namespace Linaris;
public partial class MainPage : ContentPage
{
+ private ObservableCollection albums = App.Manager.GetAlbums();
+
+ public ObservableCollection Albums
+ {
+ get => albums;
+ }
public MainPage()
{
InitializeComponent();
-
+ BindingContext = this;
}
- async public Task Go_Home()
- {
- await Navigation.PushAsync(new MainPage());
-
- }
-
-
+ async void GoToAlbum(object sender, EventArgs e)
+ {
+ await Navigation.PushAsync(new AlbumPage());
+ }
}
diff --git a/Sources/Linaris/Resources/Styles/Styles.xaml b/Sources/Linaris/Resources/Styles/Styles.xaml
index 6c08898..79a0a70 100644
--- a/Sources/Linaris/Resources/Styles/Styles.xaml
+++ b/Sources/Linaris/Resources/Styles/Styles.xaml
@@ -121,7 +121,6 @@
-
@@ -138,7 +137,6 @@
-
diff --git a/Sources/Model/Serialization/LINQ_XML_Serialization.cs b/Sources/Model/Serialization/LINQ_XML_Serialization.cs
index db0dc90..da9fe64 100644
--- a/Sources/Model/Serialization/LINQ_XML_Serialization.cs
+++ b/Sources/Model/Serialization/LINQ_XML_Serialization.cs
@@ -9,6 +9,7 @@ using static System.Reflection.Metadata.BlobBuilder;
using System.Reflection.Metadata;
using System.IO;
using System.Collections.ObjectModel;
+using System.Reflection.Emit;
namespace Model.Serialization;
@@ -80,7 +81,24 @@ public class LinqXmlSerialization : IDataManager
{
playlists = new ObservableCollection();
artists = new List();
- albums = new ObservableCollection();
+ Artist ImagineDragons = new Artist("Imagine Dragons");
+ albums = new ObservableCollection()
+ {
+ new Album("Adios Bahamas", "album1.jpg", new Artist(), "", ""),
+ new Album("Album2", "album2.jpg", new Artist(), "", ""),
+ new Album("Album3", "album3.jpg", new Artist(), "", ""),
+ new Album("Album4", "album4.jpg", new Artist(), "", ""),
+ new Album("Album5", "album5.jpg", new Artist(), "", ""),
+ new Album("Album6", "album6.jpg", new Artist(), "", ""),
+ new Album("Album7", "album7.png", new Artist(), "", ""),
+ new Album("Album8", "album8.jpg", new Artist(), "", ""),
+ new Album("Night Visions", "album9.jpg", new Artist(), "", ""),
+ new Album("Smoke & Mirrors", "album10.jpg", new Artist(), "", ""),
+ new Album("Evolve", "album11.jpg", new Artist(), "", ""),
+ new Album("Origins", "album12.jpg", new Artist(), "", ""),
+ new Album("Mercury Act 1", "album13.jpg", new Artist(), "", ""),
+ new Album("Mercury Act 2", "album14.jpg", new Artist(), "", "")
+ };
infoTitles = new ObservableCollection();
customTitles = new ObservableCollection();
if (!Directory.Exists(XMLPATH))
@@ -88,6 +106,7 @@ public class LinqXmlSerialization : IDataManager
Directory.CreateDirectory(XMLPATH);
}
Directory.SetCurrentDirectory(XMLPATH);
+ SaveAlbums();
LoadSerialization();
}