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

made it possible to enter custom urls (frontend and backend) as well as added...

made it possible to enter custom urls (frontend and backend) as well as added icons to distractionlist
parent 73b87c35
Branches
No related tags found
1 merge request!16made it possible to enter custom urls (frontend and backend) as well as added...
Showing
with 4061 additions and 3649 deletions
No preview for this file type
No preview for this file type
......@@ -3588,5 +3588,11 @@
"url": "effzeh-forum.koeln",
"distracting": true
}
],
"Other Websites": [
{
"url": "chatgpt.com",
"distracting": false
}
]
}
\ No newline at end of file
InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/gamesicon.png

2.25 KiB

InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/otherwebsitesicon.png

1.17 KiB

InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/pornicon.png

1.13 KiB

InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/programsicon.png

923 B

InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/shoppingicon.png

1.24 KiB

InnoLabProjektDektopApp/InnoLabProjektDektopApp/Assets/socialmediaicon.png

1.85 KiB

......@@ -16,8 +16,14 @@
<ItemGroup>
<None Remove="Assets\blockedProcesses.json" />
<None Remove="Assets\distractingWebsites.json" />
<None Remove="Assets\gamesicon.png" />
<None Remove="Assets\icon.ico" />
<None Remove="Assets\logo.png" />
<None Remove="Assets\otherwebsitesicon.png" />
<None Remove="Assets\pornicon.png" />
<None Remove="Assets\programsicon.png" />
<None Remove="Assets\shoppingicon.png" />
<None Remove="Assets\socialmediaicon.png" />
<None Remove="Screens\FirstLaunch\Mascott_InnoLab.jpg" />
</ItemGroup>
......@@ -49,10 +55,28 @@
<Content Include="Assets\distractingWebsites.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\gamesicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\pornicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\programsicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\shoppingicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\socialmediaicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Resource Include="Assets\icon.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Assets\logo.png" />
<Content Include="Assets\otherwebsitesicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Resource Include="Screens\FirstLaunch\Mascott_InnoLab.jpg" />
</ItemGroup>
......
......
......@@ -9,7 +9,7 @@
Height="550" Width="900">
<Grid>
<StackPanel Margin="20,20,20,20">
<StackPanel Margin="20,0,20,20">
<Grid>
<Grid.ColumnDefinitions>
......@@ -39,6 +39,93 @@
</Grid>
<TextBlock Style="{StaticResource StandardText}" Text="By clicking on each category, you can change the programs/websites that should be marked as distracting."/>
<!-- Kategorien in UniformGrid -->
<Border Background="#2C2C2C" CornerRadius="10" Padding="10" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Label -->
<TextBlock Text="Add a distracting website:"
VerticalAlignment="Center"
Foreground="White"
FontSize="14"
FontWeight="Bold"
Grid.Column="0"
Margin="10,0,10,0" />
<!-- Input Field with Placeholder -->
<Grid Grid.Column="1" VerticalAlignment="Center" Margin="0,0,10,0">
<TextBox x:Name="UrlInputBox"
VerticalAlignment="Center"
Padding="5"
FontSize="14"
Background="Transparent"
Foreground="White"
BorderBrush="Gray"
BorderThickness="1"
TextChanged="UrlInputBox_TextChanged" />
<TextBlock x:Name="UrlPlaceholder"
Text="Url"
VerticalAlignment="Center"
Foreground="Gray"
FontSize="14"
Padding="5"
IsHitTestVisible="False"
Margin="5,0,0,0" />
</Grid>
<!-- Dropdown for Category -->
<StackPanel Grid.Column="2" VerticalAlignment="Center" Margin="0,0,10,0">
<TextBlock Text="Category"
HorizontalAlignment="Left"
Foreground="White"
FontSize="14"
FontWeight="Bold"
Margin="0,0,0,5" />
<ComboBox VerticalAlignment="Center"
x:Name="CategoryComboBox"
Padding="5"
FontSize="14"
Foreground="Black"
Background="#ADD8E6"
FontWeight="Bold"
SelectedIndex="4">
<ComboBoxItem Content="Social Media" />
<ComboBoxItem Content="Shopping" />
<ComboBoxItem Content="Games" />
<ComboBoxItem Content="Porn" />
<ComboBoxItem Content="Other Websites" />
</ComboBox>
</StackPanel>
<!-- Add Button -->
<Button Width="30"
Height="30"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Grid.Column="3"
Margin="0"
BorderThickness="0"
ToolTip="Add"
Click="AddButton_Click">
<TextBlock Text="+"
FontSize="20"
Foreground="#333436"
VerticalAlignment="Center"
HorizontalAlignment="Center"
/>
</Button>
</Grid>
</Border>
<Border Background="#E6F7FF" CornerRadius="10" Padding="10" Margin="0,10,0,0">
<Grid>
<UniformGrid Columns="3" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="0,10,0,0">
......@@ -46,7 +133,7 @@
<!-- Kategorie: Social Media -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/socialmediaicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="SocialMediaCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......@@ -62,7 +149,7 @@
<!-- Kategorie: Shopping -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/shoppingicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="ShoppingCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......@@ -78,7 +165,7 @@
<!-- Kategorie: Games -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/gamesicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="GamesCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......@@ -95,7 +182,7 @@
<!-- Kategorie: Porn -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/pornicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="PornCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......@@ -111,7 +198,7 @@
<!-- Kategorie: Other Websites -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/otherwebsitesicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="OtherWebsitesCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......@@ -127,7 +214,7 @@
<!-- Kategorie: Other Programs -->
<StackPanel Margin="10">
<Grid Background="White" Height="120" Width="150" MouseDown="Grid_MouseDown">
<Image Source="pack://application:,,,/Assets/logo.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<Image Source="pack://application:,,,/Assets/programsicon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
<CheckBox x:Name="OtherProgramsCheckBox" IsChecked="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
......
......
......@@ -8,6 +8,11 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using static InnoLabProjektDektopApp.DistractionsList;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.IO;
using System.Collections.Generic;
namespace InnoLabProjektDektopApp
{
......@@ -16,24 +21,103 @@ namespace InnoLabProjektDektopApp
/// </summary>
public partial class Distractions : Window
{
private string jsonFilePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Assets", "distractingWebsites.json");
private Dictionary<string, List<WebsiteEntry>> ?data;
public Distractions()
{
InitializeComponent();
GlobalSettings.setDefaults(this);
LoadJsonData();
}
private void LoadJsonData()
{
try
{
string jsonContent = File.ReadAllText(jsonFilePath);
data = JsonSerializer.Deserialize<Dictionary<string, List<WebsiteEntry>>>(jsonContent) ?? new();
}
private void Option1_Click(object sender, RoutedEventArgs e)
catch (Exception ex)
{
MessageBox.Show($"Error loading JSON: {ex.Message}");
data = new();
}
}
private void AddButton_Click(object sender, RoutedEventArgs e)
{
//this.Content = new AnotherWindow().Content;
string enteredUrl = UrlInputBox.Text.Trim();
string selectedCategory = (CategoryComboBox.SelectedItem as ComboBoxItem)?.Content?.ToString();
// Validate category selection
if (string.IsNullOrEmpty(selectedCategory))
{
MessageBox.Show("Please select a category.", "Invalid Category", MessageBoxButton.OK, MessageBoxImage.Warning);
return;
}
private void Option2_Click(object sender, RoutedEventArgs e)
// Add new entry to the category
if (!data.ContainsKey(selectedCategory))
{
//this.Content = new AnotherWindow().Content;
data[selectedCategory] = new List<WebsiteEntry>();
}
private void Option3_Click(object sender, RoutedEventArgs e)
data[selectedCategory].Add(new WebsiteEntry
{
//this.Content = new AnotherWindow().Content;
Url = enteredUrl,
IsDistracting = true
});
// Save changes to JSON
SaveJsonData();
MessageBox.Show($"URL '{enteredUrl}' added to category '{selectedCategory}'.", "Success", MessageBoxButton.OK, MessageBoxImage.Information);
// Clear input fields
UrlInputBox.Clear();
CategoryComboBox.SelectedIndex = -1;
}
private void SaveJsonData()
{
try
{
string jsonContent = JsonSerializer.Serialize(data, new JsonSerializerOptions { WriteIndented = true });
File.WriteAllText(jsonFilePath, jsonContent);
}
catch (Exception ex)
{
MessageBox.Show($"Error saving JSON: {ex.Message}");
}
}
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
// Hier kannst du Logik hinzufügen, die bei einer Änderung im Textfeld ausgeführt werden soll.
// Zum Beispiel:
var textBox = sender as TextBox;
if (textBox != null)
{
string inputText = textBox.Text;
// Debug-Ausgabe oder Logik basierend auf inputText
System.Diagnostics.Debug.WriteLine($"TextBox geändert: {inputText}");
}
}
private void UrlInputBox_TextChanged(object sender, TextChangedEventArgs e)
{
// Überprüfen, ob die TextBox leer ist
if (!string.IsNullOrEmpty(UrlInputBox.Text))
{
UrlPlaceholder.Visibility = Visibility.Collapsed; // Placeholder ausblenden
}
else
{
UrlPlaceholder.Visibility = Visibility.Visible; // Placeholder anzeigen
}
}
private void NavigateToDistractionList(object sender, RoutedEventArgs e)
{
var clickedButton = sender as Button;
......
......
......@@ -70,6 +70,66 @@
</Grid>
<TextBlock Style="{StaticResource StandardText}" Margin="0,40,0,0"
Text="By clicking on a toggle, you can change the programs/websites that should be marked as distracting." />
<Border Background="#2C2C2C" CornerRadius="10" Padding="10" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Label -->
<TextBlock Text="Add a distracting website:"
VerticalAlignment="Center"
Foreground="White"
FontSize="14"
FontWeight="Bold"
Grid.Column="0"
Margin="10,0,10,0" />
<!-- Input Field with Placeholder -->
<Grid Grid.Column="1" VerticalAlignment="Center" Margin="0,0,10,0">
<TextBox x:Name="UrlInputBox"
VerticalAlignment="Center"
Padding="5"
FontSize="14"
Background="Transparent"
Foreground="White"
BorderBrush="Gray"
BorderThickness="1"
TextChanged="UrlInputBox_TextChanged" />
<TextBlock x:Name="UrlPlaceholder"
Text="Url"
VerticalAlignment="Center"
Foreground="Gray"
FontSize="14"
Padding="5"
IsHitTestVisible="False"
Margin="5,0,0,0" />
</Grid>
<!-- Add Button -->
<Button Width="30"
Height="30"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Grid.Column="3"
Margin="0"
BorderThickness="0"
ToolTip="Add"
Click="AddButton_Click">
<TextBlock Text="+"
FontSize="20"
Foreground="#333436"
VerticalAlignment="Center"
HorizontalAlignment="Center"
/>
</Button>
</Grid>
</Border>
<!-- Überschrift -->
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,10">
<CheckBox x:Name="OtherProgramsCheckBox" IsChecked="True" VerticalAlignment="Center"/>
......
......
......@@ -32,6 +32,68 @@ namespace InnoLabProjektDektopApp
LoadCategoryItems();
}
private void AddButton_Click(object sender, RoutedEventArgs e)
{
string enteredUrl = UrlInputBox.Text.Trim();
if (string.IsNullOrEmpty(enteredUrl))
{
MessageBox.Show("Please enter a URL.", "Invalid Input", MessageBoxButton.OK, MessageBoxImage.Warning);
return;
}
// Add the new URL to the current category
if (!_data.ContainsKey(_category))
{
_data[_category] = new List<WebsiteEntry>();
}
_data[_category].Add(new WebsiteEntry
{
Url = enteredUrl,
IsDistracting = true
});
// Save changes to the JSON
SaveData();
// Add to UI dynamically
var stackPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(5, 2, 5, 2) };
var checkBox = new CheckBox
{
Content = enteredUrl,
Margin = new Thickness(5),
IsChecked = true,
Tag = new WebsiteEntry { Url = enteredUrl, IsDistracting = true }
};
checkBox.Checked += CheckBox_CheckedChanged;
checkBox.Unchecked += CheckBox_CheckedChanged;
stackPanel.Children.Add(checkBox);
ItemsPanel.Children.Add(stackPanel);
MessageBox.Show($"URL '{enteredUrl}' has been added to the '{_category}' category.", "Success", MessageBoxButton.OK, MessageBoxImage.Information);
// Clear the input field
UrlInputBox.Clear();
}
private void UrlInputBox_TextChanged(object sender, TextChangedEventArgs e)
{
// Überprüfen, ob die TextBox leer ist
if (!string.IsNullOrEmpty(UrlInputBox.Text))
{
UrlPlaceholder.Visibility = Visibility.Collapsed; // Placeholder ausblenden
}
else
{
UrlPlaceholder.Visibility = Visibility.Visible; // Placeholder anzeigen
}
}
private void LoadCategoryItems()
{
try
......
......
......@@ -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+cf0a8680a4c35d46cdb95efa5f231321cf2dc7e2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+73b87c35786d586dd4756e6dc3b52f54e681c448")]
[assembly: System.Reflection.AssemblyProductAttribute("CoFlow")]
[assembly: System.Reflection.AssemblyTitleAttribute("CoFlow")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
......
......
e7434b071fa3ef99f4d837be9acd4f9ef8d477e2588af0e7e12df26adfd876c0
f518015b9be01a55fffb14ff88314555d169a3f0bb27c1bc2bc0d9f25efbc1b4
......@@ -383,3 +383,9 @@ D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\Inno
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\obj\Debug\net8.0-windows\InnoLabProjektDektopApp.genruntimeconfig.cache
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\obj\Debug\net8.0-windows\ref\CoFlow.dll
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\distractingWebsites.json
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\otherwebsitesicon.png
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\pornicon.png
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\programsicon.png
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\shoppingicon.png
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\socialmediaicon.png
D:\Studium\7. Semester\InnoLab\CoFlowCURRENT\CoFlow\InnoLabProjektDektopApp\InnoLabProjektDektopApp\bin\Debug\net8.0-windows\Assets\gamesicon.png
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0B7CC6FDAE6DA3ECF6AB04B2D772AF79B6975221"
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "61FB8010297A7DA80B362860DB7102270DDA6530"
//------------------------------------------------------------------------------
// <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 50 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 62 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UrlInputBox;
#line default
#line hidden
#line 71 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock UrlPlaceholder;
#line default
#line hidden
#line 91 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CategoryComboBox;
#line default
#line hidden
#line 137 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox SocialMediaCheckBox;
......@@ -51,7 +75,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 66 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 153 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox ShoppingCheckBox;
......@@ -59,7 +83,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 82 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 169 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox GamesCheckBox;
......@@ -67,7 +91,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 99 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 186 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox PornCheckBox;
......@@ -75,7 +99,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 115 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 202 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherWebsitesCheckBox;
......@@ -83,7 +107,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 131 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 218 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherProgramsCheckBox;
......@@ -121,46 +145,42 @@ namespace InnoLabProjektDektopApp {
switch (connectionId)
{
case 1:
this.UrlInputBox = ((System.Windows.Controls.TextBox)(target));
#line 48 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);
#line 70 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged);
#line default
#line hidden
return;
case 2:
this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return;
case 3:
#line 53 "..\..\..\..\..\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 4:
#line 56 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line 116 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);
#line default
#line hidden
return;
case 5:
#line 64 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 135 "..\..\..\..\..\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 6:
this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.SocialMediaCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 7:
#line 69 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 140 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -168,7 +188,7 @@ namespace InnoLabProjektDektopApp {
return;
case 8:
#line 72 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 143 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -176,18 +196,18 @@ namespace InnoLabProjektDektopApp {
return;
case 9:
#line 80 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 151 "..\..\..\..\..\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.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.ShoppingCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 11:
#line 85 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 156 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -195,7 +215,7 @@ namespace InnoLabProjektDektopApp {
return;
case 12:
#line 88 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 159 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -203,18 +223,18 @@ namespace InnoLabProjektDektopApp {
return;
case 13:
#line 97 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 167 "..\..\..\..\..\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.PornCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.GamesCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 15:
#line 102 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 172 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -222,7 +242,7 @@ namespace InnoLabProjektDektopApp {
return;
case 16:
#line 105 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 175 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -230,18 +250,18 @@ namespace InnoLabProjektDektopApp {
return;
case 17:
#line 113 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 184 "..\..\..\..\..\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.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.PornCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 19:
#line 118 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 189 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -249,7 +269,7 @@ namespace InnoLabProjektDektopApp {
return;
case 20:
#line 121 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 192 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -257,18 +277,18 @@ namespace InnoLabProjektDektopApp {
return;
case 21:
#line 129 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 200 "..\..\..\..\..\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.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.OtherWebsitesCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 23:
#line 134 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 205 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......@@ -276,7 +296,34 @@ namespace InnoLabProjektDektopApp {
return;
case 24:
#line 137 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
#line 208 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
#line hidden
return;
case 25:
#line 216 "..\..\..\..\..\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));
return;
case 27:
#line 221 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
#line hidden
return;
case 28:
#line 224 "..\..\..\..\..\Screens\FirstLaunch\03_0Distractions.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToDistractionList);
#line default
......
......
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "AD74CDE555405FEDC661EB4BFC16AF879251EC67"
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4C35DD4FCFAC3B0320BBDFAE1EC2898A3A444CAD"
//------------------------------------------------------------------------------
// <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 75 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
#line 94 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UrlInputBox;
#line default
#line hidden
#line 103 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock UrlPlaceholder;
#line default
#line hidden
#line 135 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox OtherProgramsCheckBox;
......@@ -51,7 +67,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 76 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
#line 136 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock HeaderTextBlock;
......@@ -59,7 +75,7 @@ namespace InnoLabProjektDektopApp {
#line hidden
#line 82 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
#line 142 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel ItemsPanel;
......@@ -105,12 +121,32 @@ namespace InnoLabProjektDektopApp {
#line hidden
return;
case 2:
this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target));
this.UrlInputBox = ((System.Windows.Controls.TextBox)(target));
#line 102 "..\..\..\..\..\Screens\FirstLaunch\03_1DistractionsList.xaml"
this.UrlInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UrlInputBox_TextChanged);
#line default
#line hidden
return;
case 3:
this.HeaderTextBlock = ((System.Windows.Controls.TextBlock)(target));
this.UrlPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return;
case 4:
#line 122 "..\..\..\..\..\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:
this.OtherProgramsCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 6:
this.HeaderTextBlock = ((System.Windows.Controls.TextBlock)(target));
return;
case 7:
this.ItemsPanel = ((System.Windows.Controls.StackPanel)(target));
return;
}
......
......
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