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:
parent
40270573ab
commit
6e225465c1
@ -1,6 +0,0 @@
|
||||
namespace ShadowStream.Obejeckte;
|
||||
|
||||
public class Favorites
|
||||
{
|
||||
public List<object> SharedRefs = new List<object>();
|
||||
}
|
@ -1,14 +1,42 @@
|
||||
using System.IO;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace ShadowStream.Obejeckte;
|
||||
//Quinn
|
||||
public class Item
|
||||
namespace ShadowStream.Obejeckte
|
||||
{
|
||||
//public data
|
||||
// Quinn
|
||||
public class Item : INotifyPropertyChanged
|
||||
{
|
||||
//playlist
|
||||
|
||||
#region playlist
|
||||
private bool _isAdded;
|
||||
public bool IsAdded
|
||||
{
|
||||
get => _isAdded;
|
||||
set
|
||||
{
|
||||
if (_isAdded != value)
|
||||
{
|
||||
_isAdded = value;
|
||||
OnPropertyChanged(nameof(IsAdded));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
protected void OnPropertyChanged(string propName)
|
||||
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
// Original private fields
|
||||
Label name;
|
||||
string path;
|
||||
string type;
|
||||
@ -16,7 +44,7 @@ public class Item
|
||||
Button playButton;
|
||||
bool isFoto;
|
||||
|
||||
//initilise the item
|
||||
// Constructor initializes your original fields
|
||||
public Item(string path, string type, BitmapImage image, bool isFoto, RoutedEventHandler clickHandler = null)
|
||||
{
|
||||
this.path = path;
|
||||
@ -44,37 +72,20 @@ public class Item
|
||||
Console.WriteLine(path);
|
||||
}
|
||||
|
||||
// Old methods needed by main window
|
||||
public string getLink() => path;
|
||||
public string getFormat() => type;
|
||||
public string getName() => name.Content.ToString();
|
||||
public BitmapImage getImage() => image;
|
||||
public string getType() => type;
|
||||
public Button getPlayButton() => playButton;
|
||||
|
||||
|
||||
//return individual data
|
||||
public string getLink()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
public string getFormat()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public string getName()
|
||||
{
|
||||
return name.Content.ToString();
|
||||
}
|
||||
|
||||
public BitmapImage getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
|
||||
public string getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public Button getPlayButton()
|
||||
{
|
||||
return playButton;
|
||||
}
|
||||
// new variables for data binding
|
||||
public string Path => path;
|
||||
public string Type => type;
|
||||
public string Name => name.Content.ToString();
|
||||
public BitmapImage Image => image;
|
||||
public bool IsFoto => isFoto;
|
||||
|
||||
}
|
||||
}
|
||||
|
18
ShadowStream/Modules/Obejeckte/ObjListBP.cs
Normal file
18
ShadowStream/Modules/Obejeckte/ObjListBP.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace ShadowStream.Obejeckte;
|
||||
|
||||
public class ObjListBP
|
||||
{
|
||||
public List<object> SharedRefs;
|
||||
|
||||
private string _name;
|
||||
|
||||
public ObjListBP(string name)
|
||||
{
|
||||
_name = name;
|
||||
SharedRefs = new List<object>();
|
||||
}
|
||||
public ObjListBP()
|
||||
{
|
||||
SharedRefs = new List<object>();
|
||||
}
|
||||
}
|
@ -146,10 +146,11 @@
|
||||
<Button Grid.Column="0" Grid.Row="2"
|
||||
Content="Settings"
|
||||
Margin="10"
|
||||
HorizontalAlignment="Left"/>
|
||||
HorizontalAlignment="Left"
|
||||
Click="PlayListButton_Click"/>
|
||||
|
||||
<!-- PLAYER CONTROLS -->
|
||||
<Slider Name="itemProgress" Panel.ZIndex="2" VerticalAlignment="Top" ValueChanged="ItemProgress_OnValueChanged" Grid.Row="2" Grid.Column="1" Padding="10"></Slider>
|
||||
<Slider Name="itemProgress" PreviewMouseDown="ItemProgress_OnPreviewMouseDown" Panel.ZIndex="2" VerticalAlignment="Top" ValueChanged="ItemProgress_OnValueChanged" Grid.Row="2" Grid.Column="1" Padding="10"></Slider>
|
||||
<ProgressBar Name="itemProgressVisual" Panel.ZIndex="1" Height="20" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Padding="10"></ProgressBar>
|
||||
<StackPanel Grid.Column="1" Grid.Row="2"
|
||||
Orientation="Horizontal"
|
||||
|
@ -1,33 +1,26 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using file_finder__test;
|
||||
using ShadowStream;
|
||||
using ShadowStream.LogHelper;
|
||||
using ShadowStream.Obejeckte;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using ShadowStream.ObjecktForJason;
|
||||
using TagLib;
|
||||
using ShadowStream.Modules;
|
||||
using ShadowStream.ObjecktForJason;
|
||||
using LibVLCSharp.Shared;
|
||||
using ModuleManager.Modules;
|
||||
using Brushes = System.Windows.Media.Brushes;
|
||||
using Color = System.Windows.Media.Color;
|
||||
using File = System.IO.File;
|
||||
using Image = System.Drawing.Image;
|
||||
using Path = System.IO.Path;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Threading;
|
||||
using ShadowStream.Views;
|
||||
using Point = System.Windows.Point;
|
||||
|
||||
|
||||
namespace ModuleManager;
|
||||
@ -41,11 +34,13 @@ public partial class MainWindow : Window
|
||||
#region no dont cahnge
|
||||
|
||||
//adding base components used threw out the code
|
||||
private static LogHelper loghelper = new LogHelper();
|
||||
LogWindow logWin = new LogWindow(loghelper.GetEntries());
|
||||
LogHelper log = new LogHelper();
|
||||
LogWindow logWin = new LogWindow(log.GetEntries());
|
||||
static LogHelper log = new LogHelper();
|
||||
|
||||
Favorites favorites = new Favorites();
|
||||
PlaylistEditor popupWindow;
|
||||
|
||||
ObjListBP _favorites = new ObjListBP();
|
||||
ObjListBP _playlists = new ObjListBP();
|
||||
|
||||
private Catagory Muvie = new Catagory("Muvie");
|
||||
private Catagory Serie = new Catagory("Serie");
|
||||
@ -71,6 +66,8 @@ public partial class MainWindow : Window
|
||||
|
||||
StringConversions stringConversions = new StringConversions();
|
||||
|
||||
private DispatcherTimer _progressTimer;
|
||||
|
||||
#endregion
|
||||
|
||||
//Quinn
|
||||
@ -86,16 +83,14 @@ public partial class MainWindow : Window
|
||||
#region Init wpf
|
||||
InitializeComponent();
|
||||
//Initialise but Hide
|
||||
logWin.Hide();
|
||||
logWin.Show();
|
||||
//logWin.Hide();
|
||||
//this.Hide();
|
||||
|
||||
|
||||
//Begin Login Process
|
||||
var login = new LogIn();
|
||||
login.Show();
|
||||
|
||||
#endregion
|
||||
|
||||
//Quinn Dont change or remuve!!!
|
||||
#region vlc init
|
||||
|
||||
@ -108,6 +103,12 @@ public partial class MainWindow : Window
|
||||
|
||||
_mediaPlayer.Volume = Convert.ToInt32(vol.Value);
|
||||
|
||||
_progressTimer = new DispatcherTimer
|
||||
{
|
||||
Interval = TimeSpan.FromSeconds(1)
|
||||
};
|
||||
_progressTimer.Tick += ProgressTimer_Tick;
|
||||
|
||||
#endregion
|
||||
|
||||
#region only exdend. no remuving of code
|
||||
@ -376,7 +377,18 @@ public partial class MainWindow : Window
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void PlayListButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ObservableCollection<Catagory> tmpBP= new ObservableCollection<Catagory>();
|
||||
tmpBP.Add(Muvie);
|
||||
tmpBP.Add(Serie);
|
||||
tmpBP.Add(Photo);
|
||||
tmpBP.Add(Music);
|
||||
popupWindow = new PlaylistEditor(tmpBP);
|
||||
popupWindow.Owner = this;
|
||||
popupWindow.ShowInTaskbar = false;
|
||||
popupWindow.Show();
|
||||
}
|
||||
|
||||
#region Catagory btns
|
||||
private void Home_OnClick(object sender, RoutedEventArgs e)
|
||||
@ -459,8 +471,6 @@ public partial class MainWindow : Window
|
||||
|
||||
return (await Task.WhenAll(tasks)).ToList();
|
||||
}
|
||||
|
||||
|
||||
public async Task<List<Item>> ItemCreater(List<string> paths, string type, bool isFoto, bool isMusic = false)
|
||||
{
|
||||
var itemsBag = new ConcurrentBag<Item>();
|
||||
@ -567,7 +577,7 @@ public partial class MainWindow : Window
|
||||
#region Comunication
|
||||
public void addFavorit(ref Item item)
|
||||
{
|
||||
favorites.SharedRefs.Add(item);
|
||||
_favorites.SharedRefs.Add(item);
|
||||
}
|
||||
public void ReciveErrorLog(string logMessage)
|
||||
{
|
||||
@ -578,8 +588,21 @@ public partial class MainWindow : Window
|
||||
if(suportedVidioFiles.Contains(Path.GetExtension(filePath))||suportedPhotoFiles.Contains(Path.GetExtension(filePath)))
|
||||
VideoView.Visibility = Visibility.Visible;
|
||||
var media = new Media(_libVLC, filePath, FromType.FromPath);
|
||||
|
||||
media.ParsedChanged += (sender, args) =>
|
||||
{
|
||||
if (args.ParsedStatus == MediaParsedStatus.Done)
|
||||
{
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
var duration = media.Duration;
|
||||
videoSliderInit(duration / 1000);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
media.Parse(MediaParseOptions.ParseLocal);
|
||||
_mediaPlayer.Play(media);
|
||||
videoSliderInit(media.Duration/1000);
|
||||
}
|
||||
|
||||
public void setStrings()
|
||||
@ -675,6 +698,16 @@ public partial class MainWindow : Window
|
||||
_mediaPlayer.Stop();
|
||||
VideoView.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public void RecivePlaylist(ObjListBP items)
|
||||
{
|
||||
_playlists.SharedRefs.Add(items);
|
||||
RecivePlaylist();
|
||||
}
|
||||
public void RecivePlaylist()
|
||||
{
|
||||
popupWindow.Close();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
@ -793,9 +826,6 @@ public partial class MainWindow : Window
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region load saved data
|
||||
@ -892,10 +922,6 @@ public partial class MainWindow : Window
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region sliders
|
||||
@ -921,17 +947,17 @@ public partial class MainWindow : Window
|
||||
ProgressBarValueChange();
|
||||
}
|
||||
}
|
||||
private void ItemProgress_OnValueChanged(long timeStap)
|
||||
private void ItemProgress_OnValueChangedMil(long timeStap)
|
||||
{
|
||||
itemProgress.Value = timeStap;
|
||||
ProgressBarValueChange();
|
||||
itemProgress.Value = timeStap/1000;
|
||||
itemProgressVisual.Value = itemProgress.Value;
|
||||
|
||||
}
|
||||
private void ProgressBarValueChange()
|
||||
{
|
||||
itemProgressVisual.Value = itemProgress.Value;
|
||||
if(itemProgress.IsMouseOver)
|
||||
_mediaPlayer.Time = Convert.ToInt64(itemProgress.Value) * 1000; // convert to milliseconds
|
||||
|
||||
}
|
||||
private void videoSliderInit(long timeStap)
|
||||
{
|
||||
@ -939,8 +965,47 @@ public partial class MainWindow : Window
|
||||
itemProgressVisual.Maximum = timeStap;
|
||||
itemProgress.Minimum = 0;
|
||||
itemProgressVisual.Minimum = 0;
|
||||
StartProgressTimer();
|
||||
Console.WriteLine(timeStap);
|
||||
}
|
||||
private void ItemProgress_OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
var slider = sender as Slider;
|
||||
if (slider == null) return;
|
||||
Point position = e.GetPosition(slider);
|
||||
double relativePosition = position.X / slider.ActualWidth;
|
||||
relativePosition = Math.Max(0, Math.Min(1, relativePosition));
|
||||
double newValue = slider.Minimum + (relativePosition * (slider.Maximum - slider.Minimum));
|
||||
slider.Value = newValue;
|
||||
|
||||
ProgressBarValueChange();
|
||||
|
||||
}
|
||||
private void ProgressTimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (!_mediaPlayer.IsPlaying)
|
||||
{
|
||||
StopProgressTimer();
|
||||
}
|
||||
// Get current timestamp from media player in seconds
|
||||
long currentTimeInSeconds = _mediaPlayer.Time;
|
||||
|
||||
// Update progress bar value
|
||||
ItemProgress_OnValueChangedMil(currentTimeInSeconds);
|
||||
}
|
||||
private void StartProgressTimer()
|
||||
{
|
||||
if (!_progressTimer.IsEnabled)
|
||||
_progressTimer.Start();
|
||||
}
|
||||
private void StopProgressTimer()
|
||||
{
|
||||
if (_progressTimer.IsEnabled)
|
||||
_progressTimer.Stop();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
57
ShadowStream/Views/PlaylistEditor.xaml
Normal file
57
ShadowStream/Views/PlaylistEditor.xaml
Normal file
@ -0,0 +1,57 @@
|
||||
<Window x:Class="ShadowStream.Views.PlaylistEditor"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="PlaylistEditor"
|
||||
ResizeMode="NoResize"
|
||||
SizeToContent="WidthAndHeight"
|
||||
Background="DarkGray"
|
||||
Topmost="True">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/> <!-- Playlist Name -->
|
||||
<RowDefinition Height="Auto"/> <!-- Buttons -->
|
||||
<RowDefinition Height="*"/> <!-- DataGrid -->
|
||||
<RowDefinition Height="Auto"/> <!-- Return Button -->
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Playlist Name Input -->
|
||||
<TextBox x:Name="PlaylistNameBox"
|
||||
Grid.Row="0"
|
||||
Height="30"
|
||||
Margin="0,0,0,10"
|
||||
FontSize="16"
|
||||
Text="playlist name here"
|
||||
Visibility="Collapsed"/>
|
||||
|
||||
<!-- Category Buttons -->
|
||||
<StackPanel Name="btn" Visibility="Visible" Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Center" Margin="0,0,0,10">
|
||||
<Button Content="Muvie" Click="Muvie_Click" Margin="5"/>
|
||||
<Button Content="Serie" Click="Serie_Click" Margin="5"/>
|
||||
<Button Content="Photo" Click="Photo_Click" Margin="5"/>
|
||||
<Button Content="Music" Click="Music_Click" Margin="5"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- DataGrid for SubList -->
|
||||
<DataGrid x:Name="ItemDataGrid" Grid.Row="2" AutoGenerateColumns="False" Visibility="Collapsed" Height="300" MaxWidth="600" >
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="Name" Binding="{Binding Name}" Width="*"/>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="Type" Binding="{Binding Type}" Width="*" MaxWidth="50"/>
|
||||
<DataGridCheckBoxColumn IsReadOnly="False" Header="Add" Binding="{Binding IsAdded, Mode=TwoWay}" Width="60" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
<Grid Grid.Row="3">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition>
|
||||
</ColumnDefinition>
|
||||
<ColumnDefinition>
|
||||
</ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!-- Return Button -->
|
||||
<Button Content="Return" Grid.Column="0" Width="100" HorizontalAlignment="Right" Margin="0,10,0,0"
|
||||
Click="Return_Click"/>
|
||||
<Button Content="Add" Grid.Column="1" Width="100" HorizontalAlignment="Left" Margin="0,10,0,0"
|
||||
Click="Add_Click" Visibility="Collapsed" Name="add_btn"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
89
ShadowStream/Views/PlaylistEditor.xaml.cs
Normal file
89
ShadowStream/Views/PlaylistEditor.xaml.cs
Normal file
@ -0,0 +1,89 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using FFmpeg.AutoGen;
|
||||
using ModuleManager;
|
||||
using ShadowStream.Obejeckte;
|
||||
|
||||
namespace ShadowStream.Views
|
||||
{
|
||||
public partial class PlaylistEditor : Window
|
||||
{
|
||||
private ObservableCollection<Catagory> _sharedList;
|
||||
//pointer
|
||||
//private unsafe Catagory* _sharedListLock;
|
||||
|
||||
Catagory _selectedCatagory;
|
||||
|
||||
public PlaylistEditor(ObservableCollection<Catagory> sharedList)
|
||||
{
|
||||
InitializeComponent();
|
||||
_sharedList = sharedList;
|
||||
}
|
||||
|
||||
private void ShowSublist(string categoryName)
|
||||
{
|
||||
var selected = _sharedList.FirstOrDefault(c => c.name == categoryName);
|
||||
_selectedCatagory = selected;
|
||||
if (selected != null)
|
||||
{
|
||||
PlaylistNameBox.Visibility = Visibility.Visible;
|
||||
btn.Visibility = Visibility.Collapsed;
|
||||
ItemDataGrid.Visibility = Visibility.Visible;
|
||||
add_btn.Visibility = Visibility.Visible;
|
||||
ItemDataGrid.ItemsSource = selected.getAllItems();
|
||||
}
|
||||
else
|
||||
{
|
||||
ItemDataGrid.ItemsSource = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void Muvie_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowSublist("Muvie");
|
||||
}
|
||||
|
||||
private void Serie_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowSublist("Serie");
|
||||
}
|
||||
|
||||
private void Photo_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowSublist("Photo");
|
||||
}
|
||||
|
||||
private void Music_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowSublist("Music");
|
||||
}
|
||||
|
||||
private void Return_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (this.Owner is MainWindow mainWin)
|
||||
{
|
||||
mainWin.RecivePlaylist();
|
||||
}
|
||||
}
|
||||
|
||||
private void Add_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ObjListBP tmp = new ObjListBP(PlaylistNameBox.Text);
|
||||
foreach (var VARIABLE in _selectedCatagory.getAllItems())
|
||||
{
|
||||
if (VARIABLE.IsAdded)
|
||||
{
|
||||
tmp.SharedRefs.Add(VARIABLE);
|
||||
Console.WriteLine(VARIABLE.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (this.Owner is MainWindow mainWin)
|
||||
{
|
||||
mainWin.RecivePlaylist(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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")]
|
||||
|
@ -1 +1 @@
|
||||
08a4cb3ea356bf6629d875e5247129db46f3d34a13e6e1d5aa0382365dadd8ea
|
||||
add2d75fe0b48d1a6f7379bd44e7b58e91756949509b774c348da1f23899600e
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
3da02ab8c2fa5cc0d3b567a28eaf9c3b879b900b2521902a5f3c91bc1daec065
|
||||
5c9d4b1f3c0bc94501f2fdc33ce2e9857ded01a7afd8ef5d1ae1c4ad487d9fdf
|
||||
|
@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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/*"}}
|
@ -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
|
||||
|
||||
|
Binary file not shown.
@ -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
|
||||
|
BIN
ShadowStream/obj/Debug/net8.0-windows/Views/PlaylistEditor.baml
Normal file
BIN
ShadowStream/obj/Debug/net8.0-windows/Views/PlaylistEditor.baml
Normal file
Binary file not shown.
167
ShadowStream/obj/Debug/net8.0-windows/Views/PlaylistEditor.g.cs
Normal file
167
ShadowStream/obj/Debug/net8.0-windows/Views/PlaylistEditor.g.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("file finder test")]
|
||||
[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("file finder test")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("file finder test")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
ccf60afd49f1b21d86879c8dd557d8a1506227e467e95e993b2748760c8d7e23
|
||||
d578f4111d29f5622f8353bdbfe268211661a7fe5563e53de550907eb16577b9
|
||||
|
Binary file not shown.
Binary file not shown.
@ -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/*"}}
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user