diff --git a/InnoLabProjektDektopApp/.vs/InnoLabProjektDektopApp/v17/.suo b/InnoLabProjektDektopApp/.vs/InnoLabProjektDektopApp/v17/.suo index 07fbdc5655fcc5d92f762946d61fd3a52de3289a..a308d0d67b920bfd789a1d5af27773225fb5b426 100644 Binary files a/InnoLabProjektDektopApp/.vs/InnoLabProjektDektopApp/v17/.suo and b/InnoLabProjektDektopApp/.vs/InnoLabProjektDektopApp/v17/.suo differ diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/App.xaml b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/App.xaml index c0236af680b5fc486c8eafe4bb2b669121b6a9c6..e3e81d0ef42577407ea80f9b16a66129b172fc46 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/App.xaml +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/App.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:InnoLabProjektDektopApp" - StartupUri="Screens\FirstLaunch\04Settings.xaml"> + StartupUri="Screens\FirstLaunch\03_0Distractions.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml index 4c14293f4033cbd189c24ae0c433f23031aa7bd2..14c450758bcb87e0784154260a4007b09a857e5d 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml @@ -27,17 +27,55 @@ <!-- Suchfeld --> <DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0"> - <!-- TextBox für Suche --> - <TextBox Width="150" Height="30" FontSize="14" VerticalAlignment="Center" Padding="5" - HorizontalAlignment="Left" Text="Search..." Foreground="Gray" /> + <!-- Input Field with Placeholder --> + <Grid> + <TextBox x:Name="SearchBox" + Width="150" + Height="30" + FontSize="14" + VerticalAlignment="Center" + Padding="5" + HorizontalAlignment="Left" + Background="Transparent" + Foreground="Black" + BorderBrush="Gray" + BorderThickness="1" + TextChanged="SearchBox_TextChanged" /> + <TextBlock x:Name="SearchPlaceholder" + Text="Search..." + VerticalAlignment="Center" + HorizontalAlignment="Left" + Foreground="Gray" + FontSize="14" + Padding="5" + IsHitTestVisible="False" + Margin="5,0,0,0" /> + </Grid> <!-- Lupe-Symbol --> - <Button Width="30" Height="30" Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Right"> - <TextBlock Text="🔍" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center" /> + <Button Width="30" + Height="30" + Margin="5,0,0,0" + VerticalAlignment="Center" + HorizontalAlignment="Right" + Click="SearchButton_Click"> + <TextBlock Text="🔍" + FontSize="14" + VerticalAlignment="Center" + HorizontalAlignment="Center" /> </Button> </DockPanel> + </Grid> <TextBlock Style="{StaticResource StandardText}" Text="By clicking on each category, you can change the programs/websites that should be marked as distracting."/> + + <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="20,10,0,8" Height="100"> + <StackPanel x:Name="SearchResultsPanel" /> + </ScrollViewer> + + + + <!-- Kategorien in UniformGrid --> <Border Background="#2C2C2C" CornerRadius="10" Padding="10" Margin="0,10,0,0"> <Grid> diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml.cs index 9816aec868bf293c36eb21a4374d50fe6ffe173c..c056f90fc132ff764744f9e9dd81152ca334558c 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_0Distractions.xaml.cs @@ -31,6 +31,106 @@ namespace InnoLabProjektDektopApp LoadJsonData(); } + + + private void SearchBox_TextChanged(object sender, TextChangedEventArgs e) + { + // Placeholder ein- oder ausblenden + if (!string.IsNullOrEmpty(SearchBox.Text)) + { + SearchPlaceholder.Visibility = Visibility.Collapsed; // Ausblenden + } + else + { + SearchPlaceholder.Visibility = Visibility.Visible; // Einblenden + } + } + + private void CheckBox_Changed(object sender, RoutedEventArgs e) + { + if (sender is CheckBox checkBox && checkBox.Tag is (string category, WebsiteEntry entry)) + { + entry.IsDistracting = checkBox.IsChecked ?? false; + SaveJsonData(); // Save changes back to JSON + } + } + + private void SearchButton_Click(object sender, RoutedEventArgs e) + { + if (data == null || data.Count == 0) + { + MessageBox.Show("No data found. Please ensure the JSON is loaded correctly."); + return; + } + + string searchText = SearchBox.Text.Trim().ToLower(); + + if (string.IsNullOrEmpty(searchText)) + { + MessageBox.Show("Please enter a search term."); + return; + } + + // Clear previous search results + SearchResultsPanel.Children.Clear(); + + // Search through all categories and URLs + foreach (var category in data) + { + foreach (var entry in category.Value) + { + if (entry.Url.ToLower().Contains(searchText)) + { + // Create a StackPanel for each result + var resultPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(5) }; + + // Create CheckBox + var checkBox = new CheckBox + { + IsChecked = entry.IsDistracting, + Margin = new Thickness(5), + VerticalAlignment = VerticalAlignment.Center, + Tag = (category.Key, entry) // Tag to store category and entry reference + }; + checkBox.Checked += CheckBox_Changed; + checkBox.Unchecked += CheckBox_Changed; + + // Add URL Text + var urlText = new TextBlock + { + Text = entry.Url, + Margin = new Thickness(10, 0, 0, 0), + VerticalAlignment = VerticalAlignment.Center + }; + + // Add Category Text + var categoryText = new TextBlock + { + Text = $"[{category.Key}]", + Margin = new Thickness(10, 0, 0, 0), + VerticalAlignment = VerticalAlignment.Center, + Foreground = Brushes.Gray + }; + + // Add components to result panel + resultPanel.Children.Add(checkBox); + resultPanel.Children.Add(urlText); + resultPanel.Children.Add(categoryText); + + // Add result panel to SearchResultsPanel + SearchResultsPanel.Children.Add(resultPanel); + } + } + } + + if (SearchResultsPanel.Children.Count == 0) + { + MessageBox.Show("No results found."); + } + } + + + private void LoadJsonData() { try diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml index 0da070e2ef66a923ce8f7aeee347fd544a08d33b..a7623b7a0d38a8b06b0eee98e35b8a2a3138f6c1 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml @@ -46,14 +46,30 @@ <!-- Suchfeld --> <DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0"> <!-- TextBox für Suche --> - <TextBox Width="150" - Height="30" - FontSize="14" - VerticalAlignment="Center" - Padding="5" - HorizontalAlignment="Left" - Text="Search..." - Foreground="Gray" /> + <Grid> + <TextBox x:Name="SearchBox" + Width="150" + Height="30" + FontSize="14" + VerticalAlignment="Center" + Padding="5" + HorizontalAlignment="Left" + Foreground="Black" + Background="Transparent" + BorderBrush="Gray" + BorderThickness="1" + TextChanged="SearchBox_TextChanged" /> + + <TextBlock x:Name="SearchPlaceholder" + Text="Search..." + VerticalAlignment="Center" + HorizontalAlignment="Left" + Foreground="Gray" + FontSize="14" + Padding="5" + IsHitTestVisible="False" + Margin="5,0,0,0" /> + </Grid> <!-- Lupe-Symbol --> <Button Width="30" @@ -138,7 +154,7 @@ Style="{StaticResource Header2}" Text="CATEGORY" RenderTransformOrigin="0.548,1.689" Margin="10,0,0,0"/> </StackPanel> </StackPanel> - <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="20,160,20,8"> + <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="20,215,20,8"> <StackPanel x:Name="ItemsPanel" /> </ScrollViewer> diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml.cs index a46ae912ed50f95d165d793998ed5de4a799c73c..8f17528511ab5de44b7942ef84247d87f663ea91 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Screens/FirstLaunch/03_1DistractionsList.xaml.cs @@ -32,6 +32,57 @@ namespace InnoLabProjektDektopApp LoadCategoryItems(); } + private void SearchBox_TextChanged(object sender, TextChangedEventArgs e) + { + // Platzhalter ein- oder ausblenden + if (!string.IsNullOrEmpty(SearchBox.Text)) + { + SearchPlaceholder.Visibility = Visibility.Collapsed; // Ausblenden + } + else + { + SearchPlaceholder.Visibility = Visibility.Visible; // Einblenden + } + + // Filterlogik für die Suchergebnisse + string searchText = SearchBox.Text?.ToLower() ?? string.Empty; + + // Clear current UI + ItemsPanel.Children.Clear(); + + // Filter items based on search text + if (_data != null && _data.ContainsKey(_category)) + { + var filteredItems = _data[_category] + .Where(item => string.IsNullOrEmpty(searchText) || item.Url.ToLower().Contains(searchText)) + .ToList(); + + foreach (var item in filteredItems) + { + // Create a StackPanel for each filtered item + var stackPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(5, 2, 5, 2) }; + + var checkBox = new CheckBox + { + Content = item.Url, + Margin = new Thickness(5), + IsChecked = item.IsDistracting, + Tag = item + }; + + checkBox.Checked += CheckBox_CheckedChanged; + checkBox.Unchecked += CheckBox_CheckedChanged; + + stackPanel.Children.Add(checkBox); + + // Add the filtered StackPanel to ItemsPanel + ItemsPanel.Children.Add(stackPanel); + } + } + } + + + private void AddButton_Click(object sender, RoutedEventArgs e) { string enteredUrl = UrlInputBox.Text.Trim(); diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/App.g.i.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/App.g.i.cs index bf37896f80081b6c222bccb81ae1a12d8ddaac5b..c2f181431d1c94dd0b0922abb25e62da1e711099 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/App.g.i.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/App.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2DEDC9624A7085F1363F3F7BDB3110EA433383A8" +#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "722CEC0754A69A290956448C60B605124995AEF6" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. @@ -55,7 +55,7 @@ namespace InnoLabProjektDektopApp { _contentLoaded = true; #line 5 "..\..\..\App.xaml" - this.StartupUri = new System.Uri("Screens\\FirstLaunch\\04Settings.xaml", System.UriKind.Relative); + this.StartupUri = new System.Uri("Screens\\FirstLaunch\\03_0Distractions.xaml", System.UriKind.Relative); #line default #line hidden diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfo.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfo.cs index 5e1e0dbbec4b973f6f778d9d15a5fc6acf12cb0d..47a13ebfee7fbcf371f4aab3a077b3d7fcd9c15d 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfo.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("CoFlow")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e2961321cc151ee7cede4bf9555c257ed2b23914")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f52abc1b6a467728a09ed5fd19eeeea6b63f2bc6")] [assembly: System.Reflection.AssemblyProductAttribute("CoFlow")] [assembly: System.Reflection.AssemblyTitleAttribute("CoFlow")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfoInputs.cache b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfoInputs.cache index f18c6516699235d02de6defdee07828b25a00432..209d12cc6d2b844c09e33d57f65e90cfd964ca43 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfoInputs.cache +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/InnoLabProjektDektopApp.AssemblyInfoInputs.cache @@ -1 +1 @@ -24cbb5cef908bf0a3eb96bffcadda39115f0192aa8844737e19920cfab54e06a +e36df4fae4900861619058ff410ef9ddffac570c45108346b43c2b4436dfc336 diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_0Distractions.g.i.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_0Distractions.g.i.cs index b53b48ea635f6d0d564335c699aee61a963a0380..3201da2e809e0d89d9f9723c7b0fdbaf3ca54d65 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_0Distractions.g.i.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_0Distractions.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "270B341505B1A30E3D1D99B22074D779CCEBBB87" +#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F8A1BBF0E5000434C5349C84B8350FAD96B5F31E" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. @@ -43,7 +43,31 @@ namespace InnoLabProjektDektopApp { public partial class Distractions : System.Windows.Window, System.Windows.Markup.IComponentConnector { - #line 62 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 32 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox SearchBox; + + #line default + #line hidden + + + #line 44 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBlock SearchPlaceholder; + + #line default + #line hidden + + + #line 73 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.StackPanel SearchResultsPanel; + + #line default + #line hidden + + + #line 100 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox UrlInputBox; @@ -51,7 +75,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 71 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 109 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock UrlPlaceholder; @@ -59,7 +83,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 91 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 129 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.ComboBox CategoryComboBox; @@ -67,7 +91,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 137 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 175 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox SocialMediaCheckBox; @@ -75,7 +99,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 153 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 191 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox ShoppingCheckBox; @@ -83,7 +107,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 169 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 207 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox GamesCheckBox; @@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 186 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 224 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox PornCheckBox; @@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 202 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 240 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox OtherWebsitesCheckBox; @@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 218 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 256 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox OtherProgramsCheckBox; @@ -145,69 +169,65 @@ namespace InnoLabProjektDektopApp { switch (connectionId) { case 1: - this.UrlInputBox = ((System.Windows.Controls.TextBox)(target)); + this.SearchBox = ((System.Windows.Controls.TextBox)(target)); - #line 70 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" - this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged); + #line 43 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + this.SearchBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchBox_TextChanged); #line default #line hidden return; case 2: - this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target)); + this.SearchPlaceholder = ((System.Windows.Controls.TextBlock)(target)); return; case 3: - this.CategoryComboBox = ((System.Windows.Controls.ComboBox)(target)); - return; - case 4: - #line 116 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); + #line 61 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SearchButton_Click); #line default #line hidden return; + case 4: + this.SearchResultsPanel = ((System.Windows.Controls.StackPanel)(target)); + return; case 5: + this.UrlInputBox = ((System.Windows.Controls.TextBox)(target)); - #line 135 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" - ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); + #line 108 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged); #line default #line hidden return; case 6: - this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target)); return; case 7: - - #line 140 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); - - #line default - #line hidden + this.CategoryComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 8: - #line 143 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); + #line 154 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 9: - #line 151 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 173 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 10: - this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 11: - #line 156 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 178 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -215,7 +235,7 @@ namespace InnoLabProjektDektopApp { return; case 12: - #line 159 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 181 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -223,18 +243,18 @@ namespace InnoLabProjektDektopApp { return; case 13: - #line 167 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 189 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 14: - this.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 15: - #line 172 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 194 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -242,7 +262,7 @@ namespace InnoLabProjektDektopApp { return; case 16: - #line 175 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 197 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -250,18 +270,18 @@ namespace InnoLabProjektDektopApp { return; case 17: - #line 184 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 205 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 18: - this.PornCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 19: - #line 189 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 210 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -269,7 +289,7 @@ namespace InnoLabProjektDektopApp { return; case 20: - #line 192 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 213 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -277,18 +297,18 @@ namespace InnoLabProjektDektopApp { return; case 21: - #line 200 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 222 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 22: - this.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.PornCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 23: - #line 205 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 227 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -296,7 +316,7 @@ namespace InnoLabProjektDektopApp { return; case 24: - #line 208 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 230 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -304,18 +324,18 @@ namespace InnoLabProjektDektopApp { return; case 25: - #line 216 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 238 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); #line default #line hidden return; case 26: - this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target)); + this.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 27: - #line 221 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 243 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default @@ -323,7 +343,34 @@ namespace InnoLabProjektDektopApp { return; case 28: - #line 224 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + #line 246 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); + + #line default + #line hidden + return; + case 29: + + #line 254 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); + + #line default + #line hidden + return; + case 30: + this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target)); + return; + case 31: + + #line 259 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); + + #line default + #line hidden + return; + case 32: + + #line 262 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); #line default diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_1DistractionsList.g.i.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_1DistractionsList.g.i.cs index aa97f4ee291986fd98735bfeb8504cd72cc39f57..45b27c8b7461210521cacfcd9b04a45828ceb1ba 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_1DistractionsList.g.i.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/03_1DistractionsList.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4C35DD4FCFAC3B0320BBDFAE1EC2898A3A444CAD" +#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "96BE644D81A631C6E24BB35042BB116F94BC6D3C" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. @@ -43,7 +43,23 @@ namespace InnoLabProjektDektopApp { public partial class DistractionsList : System.Windows.Window, System.Windows.Markup.IComponentConnector { - #line 94 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 50 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox SearchBox; + + #line default + #line hidden + + + #line 63 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBlock SearchPlaceholder; + + #line default + #line hidden + + + #line 110 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox UrlInputBox; @@ -51,7 +67,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 103 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 119 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock UrlPlaceholder; @@ -59,7 +75,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 135 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 151 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.CheckBox OtherProgramsCheckBox; @@ -67,7 +83,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 136 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 152 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock HeaderTextBlock; @@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp { #line hidden - #line 142 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 158 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.StackPanel ItemsPanel; @@ -121,32 +137,44 @@ namespace InnoLabProjektDektopApp { #line hidden return; case 2: + this.SearchBox = ((System.Windows.Controls.TextBox)(target)); + + #line 61 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + this.SearchBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchBox_TextChanged); + + #line default + #line hidden + return; + case 3: + this.SearchPlaceholder = ((System.Windows.Controls.TextBlock)(target)); + return; + case 4: this.UrlInputBox = ((System.Windows.Controls.TextBox)(target)); - #line 102 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 118 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged); #line default #line hidden return; - case 3: + case 5: this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target)); return; - case 4: + case 6: - #line 122 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" + #line 138 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; - case 5: + case 7: this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; - case 6: + case 8: this.HeaderTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; - case 7: + case 9: this.ItemsPanel = ((System.Windows.Controls.StackPanel)(target)); return; } diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.cs index b29cdd7f67a919de24e1bdf48bfdc4001735a8aa..eda1dded832a898b94f0ad53123442ce8bb966ba 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0D4685245942886784251546CE55DCBDA31BE979" +#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "AEDEA06AD3367AF1354991BF1C0273DEEED70798" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.i.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.i.cs index b29cdd7f67a919de24e1bdf48bfdc4001735a8aa..eda1dded832a898b94f0ad53123442ce8bb966ba 100644 --- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.i.cs +++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/Screens/FirstLaunch/04Settings.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0D4685245942886784251546CE55DCBDA31BE979" +#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "AEDEA06AD3367AF1354991BF1C0273DEEED70798" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/apphost.exe b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/apphost.exe index ba63c009df99043f25313c06033a63934bec61b9..a2821bdd9ae9b1bf8beab4702403089b9954101b 100644 Binary files a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/apphost.exe and b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/obj/Debug/net8.0-windows/apphost.exe differ