Skip to content
Snippets Groups Projects
Commit 42fb4ba3 authored by Sandra Borst's avatar Sandra Borst
Browse files

implemented searchfeature for distractionsscreen and distracionslistscreen

parent f52abc1b
No related branches found
No related tags found
1 merge request!18implemented searchfeature for distractionsscreen and distracionslistscreen
Showing
with 364 additions and 84 deletions
No preview for this file type
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:InnoLabProjektDektopApp" xmlns:local="clr-namespace:InnoLabProjektDektopApp"
StartupUri="Screens\FirstLaunch\04Settings.xaml"> StartupUri="Screens\FirstLaunch\03_0Distractions.xaml">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>
... ...
......
...@@ -27,17 +27,55 @@ ...@@ -27,17 +27,55 @@
<!-- Suchfeld --> <!-- Suchfeld -->
<DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0"> <DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0">
<!-- TextBox für Suche --> <!-- Input Field with Placeholder -->
<TextBox Width="150" Height="30" FontSize="14" VerticalAlignment="Center" Padding="5" <Grid>
HorizontalAlignment="Left" Text="Search..." Foreground="Gray" /> <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 --> <!-- Lupe-Symbol -->
<Button Width="30" Height="30" Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Right"> <Button Width="30"
<TextBlock Text="🔍" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center" /> Height="30"
Margin="5,0,0,0"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Click="SearchButton_Click">
<TextBlock Text="🔍"
FontSize="14"
VerticalAlignment="Center"
HorizontalAlignment="Center" />
</Button> </Button>
</DockPanel> </DockPanel>
</Grid> </Grid>
<TextBlock Style="{StaticResource StandardText}" Text="By clicking on each category, you can change the programs/websites that should be marked as distracting."/> <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 --> <!-- Kategorien in UniformGrid -->
<Border Background="#2C2C2C" CornerRadius="10" Padding="10" Margin="0,10,0,0"> <Border Background="#2C2C2C" CornerRadius="10" Padding="10" Margin="0,10,0,0">
<Grid> <Grid>
... ...
......
...@@ -31,6 +31,106 @@ namespace InnoLabProjektDektopApp ...@@ -31,6 +31,106 @@ namespace InnoLabProjektDektopApp
LoadJsonData(); 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() private void LoadJsonData()
{ {
try try
... ...
......
...@@ -46,14 +46,30 @@ ...@@ -46,14 +46,30 @@
<!-- Suchfeld --> <!-- Suchfeld -->
<DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0"> <DockPanel Grid.Column="1" HorizontalAlignment="Right" Margin="10,0,0,0">
<!-- TextBox für Suche --> <!-- TextBox für Suche -->
<TextBox Width="150" <Grid>
<TextBox x:Name="SearchBox"
Width="150"
Height="30" Height="30"
FontSize="14" FontSize="14"
VerticalAlignment="Center" VerticalAlignment="Center"
Padding="5" Padding="5"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Foreground="Black"
Background="Transparent"
BorderBrush="Gray"
BorderThickness="1"
TextChanged="SearchBox_TextChanged" />
<TextBlock x:Name="SearchPlaceholder"
Text="Search..." Text="Search..."
Foreground="Gray" /> VerticalAlignment="Center"
HorizontalAlignment="Left"
Foreground="Gray"
FontSize="14"
Padding="5"
IsHitTestVisible="False"
Margin="5,0,0,0" />
</Grid>
<!-- Lupe-Symbol --> <!-- Lupe-Symbol -->
<Button Width="30" <Button Width="30"
...@@ -138,7 +154,7 @@ Style="{StaticResource Header2}" ...@@ -138,7 +154,7 @@ Style="{StaticResource Header2}"
Text="CATEGORY" RenderTransformOrigin="0.548,1.689" Margin="10,0,0,0"/> Text="CATEGORY" RenderTransformOrigin="0.548,1.689" Margin="10,0,0,0"/>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="20,160,20,8"> <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="20,215,20,8">
<StackPanel x:Name="ItemsPanel" /> <StackPanel x:Name="ItemsPanel" />
</ScrollViewer> </ScrollViewer>
... ...
......
...@@ -32,6 +32,57 @@ namespace InnoLabProjektDektopApp ...@@ -32,6 +32,57 @@ namespace InnoLabProjektDektopApp
LoadCategoryItems(); 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) private void AddButton_Click(object sender, RoutedEventArgs e)
{ {
string enteredUrl = UrlInputBox.Text.Trim(); string enteredUrl = UrlInputBox.Text.Trim();
... ...
......
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2DEDC9624A7085F1363F3F7BDB3110EA433383A8" #pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "722CEC0754A69A290956448C60B605124995AEF6"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -55,7 +55,7 @@ namespace InnoLabProjektDektopApp { ...@@ -55,7 +55,7 @@ namespace InnoLabProjektDektopApp {
_contentLoaded = true; _contentLoaded = true;
#line 5 "..\..\..\App.xaml" #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 default
#line hidden #line hidden
... ...
......
...@@ -14,7 +14,7 @@ using System.Reflection; ...@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("CoFlow")] [assembly: System.Reflection.AssemblyCompanyAttribute("CoFlow")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [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.AssemblyProductAttribute("CoFlow")]
[assembly: System.Reflection.AssemblyTitleAttribute("CoFlow")] [assembly: System.Reflection.AssemblyTitleAttribute("CoFlow")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
... ...
......
24cbb5cef908bf0a3eb96bffcadda39115f0192aa8844737e19920cfab54e06a e36df4fae4900861619058ff410ef9ddffac570c45108346b43c2b4436dfc336
#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> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -43,7 +43,31 @@ namespace InnoLabProjektDektopApp { ...@@ -43,7 +43,31 @@ namespace InnoLabProjektDektopApp {
public partial class Distractions : System.Windows.Window, System.Windows.Markup.IComponentConnector { 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")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UrlInputBox; internal System.Windows.Controls.TextBox UrlInputBox;
...@@ -51,7 +75,7 @@ namespace InnoLabProjektDektopApp { ...@@ -51,7 +75,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 71 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 109 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock UrlPlaceholder; internal System.Windows.Controls.TextBlock UrlPlaceholder;
...@@ -59,7 +83,7 @@ namespace InnoLabProjektDektopApp { ...@@ -59,7 +83,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 91 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 129 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CategoryComboBox; internal System.Windows.Controls.ComboBox CategoryComboBox;
...@@ -67,7 +91,7 @@ namespace InnoLabProjektDektopApp { ...@@ -67,7 +91,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 137 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 175 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox SocialMediaCheckBox; internal System.Windows.Controls.CheckBox SocialMediaCheckBox;
...@@ -75,7 +99,7 @@ namespace InnoLabProjektDektopApp { ...@@ -75,7 +99,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 153 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 191 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox ShoppingCheckBox; internal System.Windows.Controls.CheckBox ShoppingCheckBox;
...@@ -83,7 +107,7 @@ namespace InnoLabProjektDektopApp { ...@@ -83,7 +107,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 169 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 207 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox GamesCheckBox; internal System.Windows.Controls.CheckBox GamesCheckBox;
...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp { ...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 186 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 224 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox PornCheckBox; internal System.Windows.Controls.CheckBox PornCheckBox;
...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp { ...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 202 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 240 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherWebsitesCheckBox; internal System.Windows.Controls.CheckBox OtherWebsitesCheckBox;
...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp { ...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 218 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 256 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherProgramsCheckBox; internal System.Windows.Controls.CheckBox OtherProgramsCheckBox;
...@@ -145,69 +169,65 @@ namespace InnoLabProjektDektopApp { ...@@ -145,69 +169,65 @@ namespace InnoLabProjektDektopApp {
switch (connectionId) switch (connectionId)
{ {
case 1: case 1:
this.UrlInputBox = ((System.Windows.Controls.TextBox)(target)); this.SearchBox = ((System.Windows.Controls.TextBox)(target));
#line 70 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 43 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged); this.SearchBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchBox_TextChanged);
#line default #line default
#line hidden #line hidden
return; return;
case 2: case 2:
this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target)); this.SearchPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return; return;
case 3: case 3:
this.CategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
return;
case 4:
#line 116 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 61 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SearchButton_Click);
#line default #line default
#line hidden #line hidden
return; return;
case 4:
this.SearchResultsPanel = ((System.Windows.Controls.StackPanel)(target));
return;
case 5: case 5:
this.UrlInputBox = ((System.Windows.Controls.TextBox)(target));
#line 135 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 108 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown); this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged);
#line default #line default
#line hidden #line hidden
return; return;
case 6: case 6:
this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return; return;
case 7: case 7:
this.CategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 140 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
#line hidden
return; return;
case 8: case 8:
#line 143 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" #line 154 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);
#line default #line default
#line hidden #line hidden
return; return;
case 9: 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); ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line default #line default
#line hidden #line hidden
return; return;
case 10: case 10:
this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 11: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -215,7 +235,7 @@ namespace InnoLabProjektDektopApp { ...@@ -215,7 +235,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 12: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -223,18 +243,18 @@ namespace InnoLabProjektDektopApp { ...@@ -223,18 +243,18 @@ namespace InnoLabProjektDektopApp {
return; return;
case 13: 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); ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line default #line default
#line hidden #line hidden
return; return;
case 14: case 14:
this.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 15: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -242,7 +262,7 @@ namespace InnoLabProjektDektopApp { ...@@ -242,7 +262,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 16: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -250,18 +270,18 @@ namespace InnoLabProjektDektopApp { ...@@ -250,18 +270,18 @@ namespace InnoLabProjektDektopApp {
return; return;
case 17: 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); ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line default #line default
#line hidden #line hidden
return; return;
case 18: case 18:
this.PornCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 19: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -269,7 +289,7 @@ namespace InnoLabProjektDektopApp { ...@@ -269,7 +289,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 20: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -277,18 +297,18 @@ namespace InnoLabProjektDektopApp { ...@@ -277,18 +297,18 @@ namespace InnoLabProjektDektopApp {
return; return;
case 21: 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); ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line default #line default
#line hidden #line hidden
return; return;
case 22: case 22:
this.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.PornCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 23: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -296,7 +316,7 @@ namespace InnoLabProjektDektopApp { ...@@ -296,7 +316,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 24: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -304,18 +324,18 @@ namespace InnoLabProjektDektopApp { ...@@ -304,18 +324,18 @@ namespace InnoLabProjektDektopApp {
return; return;
case 25: 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); ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line default #line default
#line hidden #line hidden
return; return;
case 26: case 26:
this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 27: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
...@@ -323,7 +343,34 @@ namespace InnoLabProjektDektopApp { ...@@ -323,7 +343,34 @@ namespace InnoLabProjektDektopApp {
return; return;
case 28: 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default #line default
... ...
......
#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> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -43,7 +43,23 @@ namespace InnoLabProjektDektopApp { ...@@ -43,7 +43,23 @@ namespace InnoLabProjektDektopApp {
public partial class DistractionsList : System.Windows.Window, System.Windows.Markup.IComponentConnector { 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")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UrlInputBox; internal System.Windows.Controls.TextBox UrlInputBox;
...@@ -51,7 +67,7 @@ namespace InnoLabProjektDektopApp { ...@@ -51,7 +67,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 103 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" #line 119 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock UrlPlaceholder; internal System.Windows.Controls.TextBlock UrlPlaceholder;
...@@ -59,7 +75,7 @@ namespace InnoLabProjektDektopApp { ...@@ -59,7 +75,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 135 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" #line 151 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherProgramsCheckBox; internal System.Windows.Controls.CheckBox OtherProgramsCheckBox;
...@@ -67,7 +83,7 @@ namespace InnoLabProjektDektopApp { ...@@ -67,7 +83,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 136 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" #line 152 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock HeaderTextBlock; internal System.Windows.Controls.TextBlock HeaderTextBlock;
...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp { ...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 142 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" #line 158 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel ItemsPanel; internal System.Windows.Controls.StackPanel ItemsPanel;
...@@ -121,32 +137,44 @@ namespace InnoLabProjektDektopApp { ...@@ -121,32 +137,44 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
return; return;
case 2: 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)); 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); this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged);
#line default #line default
#line hidden #line hidden
return; return;
case 3: case 5:
this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target)); this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return; 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); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);
#line default #line default
#line hidden #line hidden
return; return;
case 5: case 7:
this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target));
return; return;
case 6: case 8:
this.HeaderTextBlock = ((System.Windows.Controls.TextBlock)(target)); this.HeaderTextBlock = ((System.Windows.Controls.TextBlock)(target));
return; return;
case 7: case 9:
this.ItemsPanel = ((System.Windows.Controls.StackPanel)(target)); this.ItemsPanel = ((System.Windows.Controls.StackPanel)(target));
return; return;
} }
... ...
......
#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> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
... ...
......
#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> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
... ...
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment