hello kitty

This commit is contained in:
Elias Quinn
2025-06-09 16:14:20 +01:00
parent ff158be0c0
commit 467d6af393
70 changed files with 2020 additions and 149 deletions

View File

@@ -2,6 +2,7 @@ namespace ShadowStream.Obejeckte;
//Quinn
public class Catagory
{
//basic code for catatgorys next
public readonly string name;
List<Item> items = new List<Item>();

View File

@@ -5,6 +5,7 @@ namespace ShadowStream.Obejeckte;
//Quinn
public class Item
{
//public data
Label name;
string path;
string type;
@@ -12,7 +13,7 @@ public class Item
Button playButton;
bool isFoto;
//initilise the item
public Item(string path, string type,BitmapImage image,bool isFoto)
{
this.path = path;
@@ -23,6 +24,7 @@ public class Item
playButton.Content = "Play";
this.isFoto = isFoto;
}
//return the entire item so it can be displaid direckly
public (Label ,string,Button,BitmapImage,DockPanel) CreateLable(int[] gridPosition, Grid grid)
{
DockPanel dockPanel = new DockPanel();
@@ -30,16 +32,17 @@ public class Item
dockPanel.Children.Add(name);
dockPanel.Children.Add(playButton);
if (isFoto){
playButton.Content = "Show";
playButton.Content = "Show";
}
return (name,path,playButton,image,dockPanel);
}
//return individual data
public string getLink()
{
return path;
}
public string getFormat()
{
return type;