implementation of playlist logic(favorits or costum) item class is mvvm and normal due to it double usage. playlist are a filterd data grid with check box

This commit is contained in:
Elias Quinn
2025-06-18 09:13:53 +01:00
parent 40270573ab
commit 6e225465c1
44 changed files with 1506 additions and 1088 deletions

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ShadowStream")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9534ed3a8a64dfd1c23d61f834b73146bfbe4362")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+40270573ab66bc50063692949e34557e1963460f")]
[assembly: System.Reflection.AssemblyProductAttribute("ShadowStream")]
[assembly: System.Reflection.AssemblyTitleAttribute("ShadowStream")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
08a4cb3ea356bf6629d875e5247129db46f3d34a13e6e1d5aa0382365dadd8ea
add2d75fe0b48d1a6f7379bd44e7b58e91756949509b774c348da1f23899600e

View File

@@ -1 +1 @@
3da02ab8c2fa5cc0d3b567a28eaf9c3b879b900b2521902a5f3c91bc1daec065
5c9d4b1f3c0bc94501f2fdc33ce2e9857ded01a7afd8ef5d1ae1c4ad487d9fdf

View File

@@ -1772,3 +1772,5 @@ C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\obj\Debug\net
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\obj\Debug\net8.0-windows\Views\ProgressBar.baml
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\obj\Debug\net8.0-windows\Views\ProgressBar.g.cs
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\bin\Debug\net8.0-windows\Resources\Pics\MusicD.jpeg
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\obj\Debug\net8.0-windows\Views\PlaylistEditor.baml
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\obj\Debug\net8.0-windows\Views\PlaylistEditor.g.cs

View File

@@ -1 +1 @@
{"documents":{"C:\\Users\\bib\\Desktop\\vpr\\pull from pc\\mediaverwaltung\\*":"https://gitlab.com/NotMoReda1/mediaverwaltung/-/raw/9534ed3a8a64dfd1c23d61f834b73146bfbe4362/*"}}
{"documents":{"C:\\Users\\bib\\Desktop\\vpr\\pull from pc\\mediaverwaltung\\*":"https://gitlab.com/NotMoReda1/mediaverwaltung/-/raw/40270573ab66bc50063692949e34557e1963460f/*"}}

View File

@@ -10,11 +10,11 @@ none
false
TRACE;DEBUG;NET;NET8_0;NETCOREAPP
C:\Users\bib\Desktop\vpr\pull from pc\mediaverwaltung\ShadowStream\App.xaml
4-57806783
52126927803
8451318677653
18-1734813481
19-1810519192
206663139284
Resources\LogHelper\LogWindow.xaml;Views\LogIn.xaml;Views\MainWindow.xaml;Views\ProgressBar.xaml;
Resources\LogHelper\LogWindow.xaml;Views\LogIn.xaml;Views\MainWindow.xaml;Views\PlaylistEditor.xaml;Views\ProgressBar.xaml;
False

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\..\Views\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9FF6E2F3C9F46B49B955E66EB2F74EF7FC7D84DA"
#pragma checksum "..\..\..\..\Views\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "01423358CC17ACEEFBD9FB43B4A25870CE6638FB"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@@ -145,7 +145,7 @@ namespace ModuleManager {
#line hidden
#line 152 "..\..\..\..\Views\MainWindow.xaml"
#line 153 "..\..\..\..\Views\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Slider itemProgress;
@@ -153,7 +153,7 @@ namespace ModuleManager {
#line hidden
#line 153 "..\..\..\..\Views\MainWindow.xaml"
#line 154 "..\..\..\..\Views\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ProgressBar itemProgressVisual;
@@ -161,7 +161,7 @@ namespace ModuleManager {
#line hidden
#line 164 "..\..\..\..\Views\MainWindow.xaml"
#line 165 "..\..\..\..\Views\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Slider vol;
@@ -278,29 +278,35 @@ namespace ModuleManager {
this.Name_of_Catagory1 = ((System.Windows.Controls.WrapPanel)(target));
return;
case 19:
this.itemProgress = ((System.Windows.Controls.Slider)(target));
#line 152 "..\..\..\..\Views\MainWindow.xaml"
this.itemProgress.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.ItemProgress_OnValueChanged);
#line 150 "..\..\..\..\Views\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PlayListButton_Click);
#line default
#line hidden
return;
case 20:
this.itemProgressVisual = ((System.Windows.Controls.ProgressBar)(target));
return;
case 21:
this.itemProgress = ((System.Windows.Controls.Slider)(target));
#line 160 "..\..\..\..\Views\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemPriorButtonClick);
#line 153 "..\..\..\..\Views\MainWindow.xaml"
this.itemProgress.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ItemProgress_OnPreviewMouseDown);
#line default
#line hidden
#line 153 "..\..\..\..\Views\MainWindow.xaml"
this.itemProgress.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.ItemProgress_OnValueChanged);
#line default
#line hidden
return;
case 21:
this.itemProgressVisual = ((System.Windows.Controls.ProgressBar)(target));
return;
case 22:
#line 161 "..\..\..\..\Views\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemPauseBtn_Click);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemPriorButtonClick);
#line default
#line hidden
@@ -308,15 +314,23 @@ namespace ModuleManager {
case 23:
#line 162 "..\..\..\..\Views\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemNextButtonClick);
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemPauseBtn_Click);
#line default
#line hidden
return;
case 24:
#line 163 "..\..\..\..\Views\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnItemNextButtonClick);
#line default
#line hidden
return;
case 25:
this.vol = ((System.Windows.Controls.Slider)(target));
#line 164 "..\..\..\..\Views\MainWindow.xaml"
#line 165 "..\..\..\..\Views\MainWindow.xaml"
this.vol.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.RangeBase_OnValueChanged);
#line default

View File

@@ -0,0 +1,167 @@
#pragma checksum "..\..\..\..\Views\PlaylistEditor.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E2FD5F8F7F0518B330A462733F44E2473EBF720E"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace ShadowStream.Views {
/// <summary>
/// PlaylistEditor
/// </summary>
public partial class PlaylistEditor : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 18 "..\..\..\..\Views\PlaylistEditor.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox PlaylistNameBox;
#line default
#line hidden
#line 27 "..\..\..\..\Views\PlaylistEditor.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel btn;
#line default
#line hidden
#line 35 "..\..\..\..\Views\PlaylistEditor.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid ItemDataGrid;
#line default
#line hidden
#line 54 "..\..\..\..\Views\PlaylistEditor.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button add_btn;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.13.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/ShadowStream;component/views/playlisteditor.xaml", System.UriKind.Relative);
#line 1 "..\..\..\..\Views\PlaylistEditor.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.13.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.PlaylistNameBox = ((System.Windows.Controls.TextBox)(target));
return;
case 2:
this.btn = ((System.Windows.Controls.StackPanel)(target));
return;
case 3:
#line 28 "..\..\..\..\Views\PlaylistEditor.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Muvie_Click);
#line default
#line hidden
return;
case 4:
#line 29 "..\..\..\..\Views\PlaylistEditor.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Serie_Click);
#line default
#line hidden
return;
case 5:
#line 30 "..\..\..\..\Views\PlaylistEditor.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Photo_Click);
#line default
#line hidden
return;
case 6:
#line 31 "..\..\..\..\Views\PlaylistEditor.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Music_Click);
#line default
#line hidden
return;
case 7:
this.ItemDataGrid = ((System.Windows.Controls.DataGrid)(target));
return;
case 8:
#line 52 "..\..\..\..\Views\PlaylistEditor.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Return_Click);
#line default
#line hidden
return;
case 9:
this.add_btn = ((System.Windows.Controls.Button)(target));
#line 54 "..\..\..\..\Views\PlaylistEditor.xaml"
this.add_btn.Click += new System.Windows.RoutedEventHandler(this.Add_Click);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}