playlist loading from json and displaying it properly

This commit is contained in:
Elias Quinn
2025-06-24 10:59:59 +01:00
parent 6e225465c1
commit 9e5b7a6999
48 changed files with 1740 additions and 1338 deletions

View File

@@ -1,3 +1,4 @@
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
using ModuleManager.Modules;
@@ -10,12 +11,20 @@ public class Catagory
public readonly string name;
List<Item> items = new List<Item>();
private WrapPanel wrapPanel;
StringConversions conv = new StringConversions();
public Catagory(string name)
{
this.name = name;
}
public Catagory(string name,WrapPanel wrapPanel)
{
this.name = name;
this.wrapPanel = wrapPanel;
}
public void addItem(Item item)
{
@@ -58,4 +67,9 @@ public class Catagory
return -1; // Not found
}
public WrapPanel getWrapPanel()
{
return wrapPanel;
}
}

View File

@@ -70,6 +70,7 @@ namespace ShadowStream.Obejeckte
this.isFoto = isFoto;
Console.WriteLine(path);
Console.WriteLine(playButton.Tag);
}
// Old methods needed by main window

View File

@@ -2,17 +2,17 @@ namespace ShadowStream.Obejeckte;
public class ObjListBP
{
public List<object> SharedRefs;
public List<Catagory> SharedRefs;
private string _name;
public ObjListBP(string name)
{
_name = name;
SharedRefs = new List<object>();
SharedRefs = new List<Catagory>();
}
public ObjListBP()
{
SharedRefs = new List<object>();
SharedRefs = new List<Catagory>();
}
}