Skip to content
Snippets Groups Projects
Commit 8ffa368f authored by Philipp Müller's avatar Philipp Müller
Browse files

Merge branch 'refs/heads/develop' into program-list

parents 46295417 a76b5b6f
No related branches found
No related tags found
1 merge request!28added program list
Showing
with 505 additions and 186 deletions
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -35,7 +35,7 @@ namespace InnoLabProjektDektopApp ...@@ -35,7 +35,7 @@ namespace InnoLabProjektDektopApp
private void Button_Click(object sender, RoutedEventArgs e) private void Button_Click(object sender, RoutedEventArgs e)
{ {
this.Content = new Progress().Content; //
} }
} }
} }
\ No newline at end of file
...@@ -26,7 +26,7 @@ namespace InnoLabProjektDektopApp ...@@ -26,7 +26,7 @@ namespace InnoLabProjektDektopApp
} }
private void Button_Click2(object sender, RoutedEventArgs e) private void Button_Click2(object sender, RoutedEventArgs e)
{ {
this.Content = new Settings().Content; //this.Content = new Settings().Content;
} }
private void Button_Click3(object sender, RoutedEventArgs e) private void Button_Click3(object sender, RoutedEventArgs e)
{ {
......
...@@ -119,40 +119,46 @@ ToolTip="You can decide how long the focus and break period should be. The focus ...@@ -119,40 +119,46 @@ ToolTip="You can decide how long the focus and break period should be. The focus
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<!-- Focus Period --> <!-- Focus Period -->
<StackPanel Grid.Column="0" Margin="10"> <StackPanel Grid.Column="0" Margin="10">
<TextBlock Text="Focus period" FontSize="14" FontWeight="SemiBold" Foreground="Gray" /> <TextBlock Text="Focus period" FontSize="14" FontWeight="SemiBold" Foreground="Gray" />
<ComboBox x:Name="FocusPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="150" FontSize="14" Padding="5" SelectionChanged="ComboBox_SelectionChanged" IsEditable="True"> <StackPanel Orientation="Horizontal">
<ComboBoxItem Content="20 minutes" /> <ComboBox x:Name="FocusPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="100" FontSize="14" Padding="5" SelectionChanged="ComboBox_SelectionChanged" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">
<ComboBoxItem Content="30 minutes" /> <ComboBoxItem Content="20" />
<ComboBoxItem Content="40 minutes" /> <ComboBoxItem Content="30" />
<ComboBoxItem Content="50 minutes" IsSelected="True" /> <ComboBoxItem Content="40" />
<ComboBoxItem Content="60 minutes" /> <ComboBoxItem Content="50" IsSelected="True" />
<ComboBoxItem Content="90 minutes" /> <ComboBoxItem Content="60" />
<ComboBoxItem Content="120 minutes" /> <ComboBoxItem Content="90" />
<ComboBoxItem Content="150 minutes" /> <ComboBoxItem Content="120" />
<ComboBoxItem Content="180 minutes" /> <ComboBoxItem Content="150" />
</ComboBox> <ComboBoxItem Content="180" />
</StackPanel> </ComboBox>
<TextBlock Text="minutes" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="14" Foreground="Gray" />
<!-- Break Period --> </StackPanel>
<StackPanel Grid.Column="1" Margin="10"> </StackPanel>
<TextBlock Text="Break period" FontSize="14" FontWeight="SemiBold" Foreground="Gray" />
<ComboBox x:Name="BreakPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="150" FontSize="14" Padding="5" IsEditable="True"> <!-- Break Period -->
<ComboBoxItem Content="0 minutes" /> <StackPanel Grid.Column="1" Margin="10">
<ComboBoxItem Content="3 minutes" /> <TextBlock Text="Break period" FontSize="14" FontWeight="SemiBold" Foreground="Gray" />
<ComboBoxItem Content="5 minutes" /> <StackPanel Orientation="Horizontal">
<ComboBoxItem Content="10 minutes" IsSelected="True" /> <ComboBox x:Name="BreakPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="100" FontSize="14" Padding="5" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">
<ComboBoxItem Content="15 minutes" /> <ComboBoxItem Content="0" />
<ComboBoxItem Content="20 minutes" /> <ComboBoxItem Content="3" />
<ComboBoxItem Content="25 minutes" /> <ComboBoxItem Content="5" />
<ComboBoxItem Content="30 minutes" /> <ComboBoxItem Content="10" IsSelected="True" />
</ComboBox> <ComboBoxItem Content="15" />
</StackPanel> <ComboBoxItem Content="20" />
<ComboBoxItem Content="25" />
<!-- Cycles --> <ComboBoxItem Content="30" />
</ComboBox>
<TextBlock Text="minutes" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="14" Foreground="Gray" />
</StackPanel>
</StackPanel>
<!-- Cycles -->
<StackPanel Grid.Column="2" Margin="10"> <StackPanel Grid.Column="2" Margin="10">
<TextBlock Text="Cycles" FontSize="14" FontWeight="SemiBold" Foreground="Gray" /> <TextBlock Text="Cycles" FontSize="14" FontWeight="SemiBold" Foreground="Gray" />
<ComboBox x:Name="CyclesComboBox" HorizontalAlignment="Left" Height="30" Width="150" FontSize="14" Padding="5" IsEditable="True"> <ComboBox x:Name="CyclesComboBox" HorizontalAlignment="Left" Height="30" Width="150" FontSize="14" Padding="5" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">>
<ComboBoxItem Content="1" /> <ComboBoxItem Content="1" />
<ComboBoxItem Content="2" /> <ComboBoxItem Content="2" />
<ComboBoxItem Content="3" /> <ComboBoxItem Content="3" />
......
...@@ -32,6 +32,10 @@ namespace InnoLabProjektDektopApp ...@@ -32,6 +32,10 @@ namespace InnoLabProjektDektopApp
if (MascotVisibleNo.IsChecked == true) if (MascotVisibleNo.IsChecked == true)
{ {
MotivationSection.Visibility = Visibility.Collapsed; // Hide the section MotivationSection.Visibility = Visibility.Collapsed; // Hide the section
//uncheck motivation options
WordsOfAffirmationCheckBox.IsChecked = false;
InsultingWordsCheckBox.IsChecked = false;
} }
else else
{ {
...@@ -60,18 +64,22 @@ namespace InnoLabProjektDektopApp ...@@ -60,18 +64,22 @@ namespace InnoLabProjektDektopApp
private void SaveSettingsButton_Click(object sender, RoutedEventArgs e) private void SaveSettingsButton_Click(object sender, RoutedEventArgs e)
{ {
// Sammle die Einstellungen aus den Eingabefeldern // Sammle die Werte aus den ComboBoxen oder verwende Standardwerte
string focusPeriod = ((ComboBoxItem)FocusPeriodComboBox.SelectedItem)?.Content.ToString() ?? "50 minutes"; string focusPeriod = string.IsNullOrWhiteSpace(FocusPeriodComboBox.Text) ? "50" : FocusPeriodComboBox.Text;
string breakPeriod = ((ComboBoxItem)BreakPeriodComboBox.SelectedItem)?.Content.ToString() ?? "10 minutes"; string breakPeriod = string.IsNullOrWhiteSpace(BreakPeriodComboBox.Text) ? "10" : BreakPeriodComboBox.Text;
string cycles = ((ComboBoxItem)CyclesComboBox.SelectedItem)?.Content.ToString() ?? "4"; string cycles = string.IsNullOrWhiteSpace(CyclesComboBox.Text) ? "4" : CyclesComboBox.Text;
string distractionMode = DistractionModeFullBlocking.IsChecked == true
? "Full-blocking mode"
: DistractionModeMascotFeedback.IsChecked == true
? "Mascot feedback only"
: "seconds warning mode";
string distractionMode = DistractionModeFullBlocking.IsChecked == true string warningSeconds = !string.IsNullOrWhiteSpace(SecondsComboBox.Text)
? "Full-blocking mode" ? SecondsComboBox.Text
: DistractionModeMascotFeedback.IsChecked == true : "10";
? "Mascot feedback only"
: $"{SecondsComboBox.SelectedItem} seconds warning mode";
string mascotVisible = MascotVisibleYes.IsChecked == true ? "Yes" : "No"; string mascotVisible = MascotVisibleYes.IsChecked == true ? "Yes" : "No";
bool wordsOfAffirmation = WordsOfAffirmationCheckBox.IsChecked ?? false; bool wordsOfAffirmation = WordsOfAffirmationCheckBox.IsChecked ?? false;
bool insultingWords = InsultingWordsCheckBox.IsChecked ?? false; bool insultingWords = InsultingWordsCheckBox.IsChecked ?? false;
...@@ -87,6 +95,7 @@ private void SaveSettingsButton_Click(object sender, RoutedEventArgs e) ...@@ -87,6 +95,7 @@ private void SaveSettingsButton_Click(object sender, RoutedEventArgs e)
{ "breakPeriod", breakPeriod }, { "breakPeriod", breakPeriod },
{ "cycles", cycles }, { "cycles", cycles },
{ "distractionMode", distractionMode }, { "distractionMode", distractionMode },
{ "warningSeconds", warningSeconds },
{ "mascotVisibility", mascotVisible }, { "mascotVisibility", mascotVisible },
{ "wordsOfAffirmation", wordsOfAffirmation.ToString() }, { "wordsOfAffirmation", wordsOfAffirmation.ToString() },
{ "insultingWords", insultingWords.ToString() } { "insultingWords", insultingWords.ToString() }
...@@ -127,9 +136,15 @@ private void SaveSettingsButton_Click(object sender, RoutedEventArgs e) ...@@ -127,9 +136,15 @@ private void SaveSettingsButton_Click(object sender, RoutedEventArgs e)
} }
private void ComboBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
e.Handled = !int.TryParse(e.Text, out _);
}
}
}
} }
\ No newline at end of file
...@@ -69,97 +69,99 @@ HorizontalAlignment="Left" /> ...@@ -69,97 +69,99 @@ HorizontalAlignment="Left" />
Text="Settings for this session" Text="Settings for this session"
/> />
<Grid> <WrapPanel>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" /> <!-- Erste Reihe -->
<ColumnDefinition Width="2*" /> <StackPanel Grid.Row="0" Grid.Column="0" Margin="10">
<ColumnDefinition Width="1*" /> <TextBlock Text="Focus period" FontSize="14" FontWeight="Bold" Foreground="White" />
<ColumnDefinition Width="2*" /> <StackPanel Orientation="Horizontal">
<ColumnDefinition Width="2*" /> <ComboBox x:Name="FocusPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="70" FontSize="14" Padding="5" SelectionChanged="ComboBox_SelectionChanged" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">
<ColumnDefinition Width="2*" /> <ComboBoxItem Content="20" />
</Grid.ColumnDefinitions> <ComboBoxItem Content="30" />
<ComboBoxItem Content="40" />
<!-- Focus Period --> <ComboBoxItem Content="50" IsSelected="True" />
<StackPanel Grid.Column="0" VerticalAlignment="Center"> <ComboBoxItem Content="60" />
<TextBlock Text="Focus period" Foreground="White" FontSize="14" FontWeight="Bold" /> <ComboBoxItem Content="90" />
<ComboBox x:Name="FocusPeriodComboBox" Width="100" HorizontalAlignment="Left"> <ComboBoxItem Content="120" />
<ComboBoxItem Content="20 minutes" /> <ComboBoxItem Content="150" />
<ComboBoxItem Content="30 minutes" /> <ComboBoxItem Content="180" />
<ComboBoxItem Content="40 minutes" /> </ComboBox>
<ComboBoxItem Content="50 minutes" IsSelected="True" /> <TextBlock Text="minutes" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="14" Foreground="Gray" />
<ComboBoxItem Content="60 minutes" /> </StackPanel>
<ComboBoxItem Content="90 minutes" /> </StackPanel>
<ComboBoxItem Content="120 minutes" />
<ComboBoxItem Content="150 minutes" />
<ComboBoxItem Content="180 minutes" />
</ComboBox>
</StackPanel>
<!-- Break Period --> <StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
<StackPanel Grid.Column="1" VerticalAlignment="Center"> <TextBlock Text="Break period" FontSize="14" FontWeight="Bold" Foreground="White" />
<TextBlock Text="Break period" Foreground="White" FontSize="14" FontWeight="Bold" /> <StackPanel Orientation="Horizontal">
<ComboBox x:Name="BreakPeriodComboBox" Width="100" HorizontalAlignment="Left"> <ComboBox x:Name="BreakPeriodComboBox" HorizontalAlignment="Left" Height="30" Width="70" FontSize="14" Padding="5" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">
<ComboBoxItem Content="0 minutes" /> <ComboBoxItem Content="0" />
<ComboBoxItem Content="3 minutes" /> <ComboBoxItem Content="3" />
<ComboBoxItem Content="5 minutes" /> <ComboBoxItem Content="5" />
<ComboBoxItem Content="10 minutes" IsSelected="True" /> <ComboBoxItem Content="10" IsSelected="True" />
<ComboBoxItem Content="15 minutes" /> <ComboBoxItem Content="15" />
<ComboBoxItem Content="20 minutes" /> <ComboBoxItem Content="20" />
<ComboBoxItem Content="25 minutes" /> <ComboBoxItem Content="25" />
<ComboBoxItem Content="30 minutes" /> <ComboBoxItem Content="30" />
</ComboBox> </ComboBox>
</StackPanel> <TextBlock Text="minutes" VerticalAlignment="Center" Margin="5,0,0,0" FontSize="14" Foreground="Gray" />
</StackPanel>
</StackPanel>
<!-- Cycles --> <StackPanel Grid.Row="0" Grid.Column="2" Margin="10">
<StackPanel Grid.Column="2" VerticalAlignment="Center"> <TextBlock Text="Cycles" FontSize="14" FontWeight="Bold" Foreground="White" />
<TextBlock Text="Cycles" Foreground="White" FontSize="14" FontWeight="Bold" /> <ComboBox x:Name="CyclesComboBox" HorizontalAlignment="Left" Height="30" Width="50" FontSize="14" Padding="5" IsEditable="True" PreviewTextInput="ComboBox_PreviewTextInput">
<ComboBox x:Name="CyclesComboBox" Width="50" HorizontalAlignment="Left"> <ComboBoxItem Content="1" />
<ComboBoxItem Content="1" /> <ComboBoxItem Content="2" />
<ComboBoxItem Content="2" /> <ComboBoxItem Content="3" />
<ComboBoxItem Content="3" /> <ComboBoxItem Content="4" IsSelected="True" />
<ComboBoxItem Content="4" IsSelected="True" /> <ComboBoxItem Content="5" />
<ComboBoxItem Content="5" /> <ComboBoxItem Content="6" />
<ComboBoxItem Content="6" /> </ComboBox>
</ComboBox> </StackPanel>
</StackPanel>
<!-- Distraction Mode --> <!-- Zweite Reihe -->
<StackPanel Grid.Column="3" VerticalAlignment="Center"> <StackPanel Grid.Row="1" Grid.Column="0" Margin="10" x:Name="SecondsWarningPanel" >
<TextBlock Text="Distraction Mode" Foreground="White" FontSize="14" FontWeight="Bold" /> <TextBlock Text="Seconds" Foreground="White" FontSize="14" FontWeight="Bold" />
<ComboBox x:Name="DistractionModeComboBox" Width="140" HorizontalAlignment="Left"> <ComboBox x:Name="SecondsWarningComboBox" Width="50" HorizontalAlignment="Left">
<ComboBoxItem Content="Full-blocking mode" IsSelected="True" /> <ComboBoxItem Content="3" />
<ComboBoxItem Content="Warning mode" /> <ComboBoxItem Content="5" />
<ComboBoxItem Content="Mascot feedback only" /> <ComboBoxItem Content="10" IsSelected="True"/>
</ComboBox> <ComboBoxItem Content="15" />
</StackPanel> <ComboBoxItem Content="30" />
</ComboBox>
</StackPanel>
<!-- Mascot Visibility --> <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="10">
<StackPanel Grid.Column="4" VerticalAlignment="Center"> <TextBlock Text="Distraction Mode" Foreground="White" FontSize="14" FontWeight="Bold" />
<TextBlock Text="Mascot visible" Foreground="White" FontSize="14" FontWeight="Bold" /> <ComboBox x:Name="DistractionModeComboBox" Width="170" HorizontalAlignment="Left" SelectionChanged="DistractionMode_SelectionChanged">
<ComboBox x:Name="MascotVisibilityComboBox" Width="80" HorizontalAlignment="Left"> <ComboBoxItem Content="Full-blocking mode" IsSelected="True" />
<ComboBoxItem Content="Yes" IsSelected="True" /> <ComboBoxItem Content="seconds warning mode" />
<ComboBoxItem Content="No" /> <ComboBoxItem Content="Mascot feedback only" />
</ComboBox> </ComboBox>
</StackPanel> </StackPanel>
<!-- Motivation Options --> <StackPanel Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" Margin="10" Width="150">
<StackPanel Grid.Column="5" VerticalAlignment="Center"> <TextBlock Text="Mascot visible" Foreground="White" FontSize="14" FontWeight="Bold" />
<TextBlock Text="Motivation options" Foreground="White" FontSize="14" FontWeight="Bold" /> <ComboBox x:Name="MascotVisibilityComboBox" Width="80" HorizontalAlignment="Left" SelectionChanged="MascotVisibilityComboBox_SelectionChanged">
<StackPanel Orientation="Horizontal" > <ComboBoxItem Content="Yes" IsSelected="True" />
<CheckBox x:Name="WordsOfAffirmationCheckBox" IsChecked="True" VerticalAlignment="Center"/> <ComboBoxItem Content="No" />
<TextBlock </ComboBox>
Style="{StaticResource StandardText}" Foreground="White"
Text="words of affirmation" Margin="10,0,0,0"/>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" >
<CheckBox x:Name="InsultingWordsCheckBox" IsChecked="True" VerticalAlignment="Center"/> <StackPanel Grid.Row="1" Grid.Column="3" VerticalAlignment="Stretch" Margin="10" x:Name="MotivationOptionsPanel" Visibility="Collapsed">
<TextBlock <TextBlock Text="Motivation options" Foreground="White" FontSize="14" FontWeight="Bold" />
Style="{StaticResource StandardText}" Foreground="White" <StackPanel Orientation="Horizontal">
Text="insulting words" Margin="10,0,0,0"/> <CheckBox x:Name="WordsOfAffirmationCheckBox" IsChecked="True" VerticalAlignment="Center" />
<TextBlock Style="{StaticResource StandardText}" Foreground="White" Text="words of affirmation" Margin="10,0,0,0" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="InsultingWordsCheckBox" IsChecked="True" VerticalAlignment="Center" />
<TextBlock Style="{StaticResource StandardText}" Foreground="White" Text="insulting words" Margin="10,0,0,0" />
</StackPanel>
</StackPanel> </StackPanel>
</StackPanel> </WrapPanel>
</Grid>
</StackPanel> </StackPanel>
</Border> </Border>
<TextBlock Text="Optional: What do you want to focus on during this session? (Premium)" Foreground="Gray" FontSize="14" FontWeight="Bold" Margin="0,20,0,0"/> <TextBlock Text="Optional: What do you want to focus on during this session? (Premium)" Foreground="Gray" FontSize="14" FontWeight="Bold" Margin="0,20,0,0"/>
......
...@@ -3,6 +3,7 @@ using System.IO; ...@@ -3,6 +3,7 @@ using System.IO;
using System.Text.Json; using System.Text.Json;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Input;
namespace InnoLabProjektDektopApp namespace InnoLabProjektDektopApp
{ {
...@@ -33,6 +34,7 @@ namespace InnoLabProjektDektopApp ...@@ -33,6 +34,7 @@ namespace InnoLabProjektDektopApp
{ {
try try
{ {
// JSON-Datei lesen
// JSON-Datei lesen // JSON-Datei lesen
if (File.Exists(SettingsFilePath)) if (File.Exists(SettingsFilePath))
{ {
...@@ -47,21 +49,21 @@ namespace InnoLabProjektDektopApp ...@@ -47,21 +49,21 @@ namespace InnoLabProjektDektopApp
if (profileSettings.TryGetProperty("focusPeriod", out var focusPeriodElement)) if (profileSettings.TryGetProperty("focusPeriod", out var focusPeriodElement))
{ {
string focusPeriod = focusPeriodElement.GetString(); string focusPeriod = focusPeriodElement.GetString();
FocusPeriodComboBox.SelectedItem = FindComboBoxItem(FocusPeriodComboBox, focusPeriod); FocusPeriodComboBox.Text = focusPeriod;
} }
// Break Period // Break Period
if (profileSettings.TryGetProperty("breakPeriod", out var breakPeriodElement)) if (profileSettings.TryGetProperty("breakPeriod", out var breakPeriodElement))
{ {
string breakPeriod = breakPeriodElement.GetString(); string breakPeriod = breakPeriodElement.GetString();
BreakPeriodComboBox.SelectedItem = FindComboBoxItem(BreakPeriodComboBox, breakPeriod); BreakPeriodComboBox.Text = breakPeriod;
} }
// Cycles // Cycles
if (profileSettings.TryGetProperty("cycles", out var cyclesElement)) if (profileSettings.TryGetProperty("cycles", out var cyclesElement))
{ {
string cycles = cyclesElement.GetString(); string cycles = cyclesElement.GetString();
CyclesComboBox.SelectedItem = FindComboBoxItem(CyclesComboBox, cycles); CyclesComboBox.Text = cycles;
} }
// Distraction Mode // Distraction Mode
...@@ -69,6 +71,39 @@ namespace InnoLabProjektDektopApp ...@@ -69,6 +71,39 @@ namespace InnoLabProjektDektopApp
{ {
string distractionMode = distractionModeElement.GetString(); string distractionMode = distractionModeElement.GetString();
DistractionModeComboBox.SelectedItem = FindComboBoxItem(DistractionModeComboBox, distractionMode); DistractionModeComboBox.SelectedItem = FindComboBoxItem(DistractionModeComboBox, distractionMode);
// Zusätzliche ComboBox für Sekunden aktivieren, wenn Modus "seconds warning mode" ist
if (distractionMode == "seconds warning mode")
{
SecondsWarningComboBox.Visibility = Visibility.Visible;
}
else
{
SecondsWarningComboBox.Visibility = Visibility.Collapsed;
}
}
//Get information about seconds
if (profileSettings.TryGetProperty("warningSeconds", out var warningSecondsElement))
{
string warningSeconds = warningSecondsElement.GetString();
// Überprüfen, ob der Wert existiert, andernfalls auf Standard setzen
var item = SecondsWarningComboBox.Items
.OfType<ComboBoxItem>()
.FirstOrDefault(i => i.Content.ToString() == warningSeconds);
if (item != null)
{
SecondsWarningComboBox.SelectedItem = item;
}
else
{
// Setze einen Standardwert, falls der gespeicherte Wert ungültig ist
SecondsWarningComboBox.SelectedItem = "10"; // Default: "10"
}
} }
// Mascot Visibility // Mascot Visibility
...@@ -76,8 +111,19 @@ namespace InnoLabProjektDektopApp ...@@ -76,8 +111,19 @@ namespace InnoLabProjektDektopApp
{ {
string mascotVisibility = mascotVisibilityElement.GetString(); string mascotVisibility = mascotVisibilityElement.GetString();
MascotVisibilityComboBox.SelectedItem = FindComboBoxItem(MascotVisibilityComboBox, mascotVisibility); MascotVisibilityComboBox.SelectedItem = FindComboBoxItem(MascotVisibilityComboBox, mascotVisibility);
// Überprüfen, ob es "No" ist
if (mascotVisibility == "No")
{
MotivationOptionsPanel.Visibility = Visibility.Collapsed;
}
else
{
MotivationOptionsPanel.Visibility = Visibility.Visible;
}
} }
// Checkbox: Words of Affirmation // Checkbox: Words of Affirmation
if (profileSettings.TryGetProperty("wordsOfAffirmation", out var wordsOfAffirmationElement)) if (profileSettings.TryGetProperty("wordsOfAffirmation", out var wordsOfAffirmationElement))
{ {
...@@ -175,5 +221,58 @@ namespace InnoLabProjektDektopApp ...@@ -175,5 +221,58 @@ namespace InnoLabProjektDektopApp
this.NavigationService.Navigate(new Session(focusPeriod, breakPeriod, cycles, distractionMode, mascotVisible, wordsOfAffirmation, insultingWords)); this.NavigationService.Navigate(new Session(focusPeriod, breakPeriod, cycles, distractionMode, mascotVisible, wordsOfAffirmation, insultingWords));
} }
private void ComboBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
e.Handled = !int.TryParse(e.Text, out _);
}
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
}
private void DistractionMode_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (DistractionModeComboBox.SelectedItem != null &&
DistractionModeComboBox.SelectedItem.ToString().Contains("seconds warning mode"))
{
SecondsWarningPanel.Visibility = Visibility.Visible;
// Setze einen Standardwert, falls keiner ausgewählt ist
if (SecondsWarningComboBox.SelectedItem == null)
{
SecondsWarningComboBox.SelectedItem = "10"; // Default: "10"
}
}
else
{
SecondsWarningPanel.Visibility = Visibility.Collapsed;
}
}
private void MascotVisibilityComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (MascotVisibilityComboBox.SelectedItem is ComboBoxItem selectedItem)
{
string selectedValue = selectedItem.Content.ToString();
if (MotivationOptionsPanel == null) return;
// MotivationOptionsPanel wird sichtbar oder verborgen
if (selectedValue == "No")
{
MotivationOptionsPanel.Visibility = Visibility.Collapsed;
WordsOfAffirmationCheckBox.IsChecked = false;
InsultingWordsCheckBox.IsChecked = false;
}
else
{
MotivationOptionsPanel.Visibility = Visibility.Visible;
}
}
}
} }
} }
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary 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">
<!-- Farben definieren -->
<Color x:Key="HIGHLIGHT_PRIMARY_COLOR">#ADD8E6</Color>
<!-- Ersetze durch den exakten Farbwert -->
<Color x:Key="HIGHLIGHT_SECONDARY_COLOR">#1B2736</Color>
<!-- Ersetze durch den exakten Farbwert -->
<Color x:Key="BACKGROUND_PRIMARY_COLOR">#272727</Color>
<!-- Ersetze durch den exakten Farbwert -->
<Color x:Key="BACKGROUND_SECONDARY_COLOR">#333436</Color>
<!-- Ersetze durch den exakten Farbwert -->
<Color x:Key="TEXT_PRIMARY_COLOR">#EEEEEE</Color>
<!-- Ersetze durch den exakten Farbwert -->
<Color x:Key="TEXT_SECONDARY_COLOR">#9E9E9E</Color>
<!-- Ersetze durch den exakten Farbwert -->
<!-- Optional: Farben als Brushes bereitstellen -->
<SolidColorBrush x:Key="HIGHLIGHT_PRIMARY_BRUSH" Color="{StaticResource HIGHLIGHT_PRIMARY_COLOR}" />
<SolidColorBrush x:Key="HIGHLIGHT_SECONDARY_BRUSH" Color="{StaticResource HIGHLIGHT_SECONDARY_COLOR}" />
<SolidColorBrush x:Key="BACKGROUND_PRIMARY_BRUSH" Color="{StaticResource BACKGROUND_PRIMARY_COLOR}" />
<SolidColorBrush x:Key="BACKGROUND_SECONDARY_BRUSH" Color="{StaticResource BACKGROUND_SECONDARY_COLOR}" />
<SolidColorBrush x:Key="TEXT_PRIMARY_BRUSH" Color="{StaticResource TEXT_PRIMARY_COLOR}" />
<SolidColorBrush x:Key="TEXT_SECONDARY_BRUSH" Color="{StaticResource TEXT_SECONDARY_COLOR}" />
<Style TargetType="ToolTip"> <Style TargetType="ToolTip">
<Setter Property="Background" Value="LightYellow" /> <Setter Property="Background" Value="LightYellow" />
<Setter Property="Foreground" Value="Black" /> <Setter Property="Foreground" Value="Black" />
......
...@@ -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+c9b946b3346a901f02ac1a59efe2d304d269d6df")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b8199ce351b70646617289c7b40d7b08cb30f644")]
[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")]
......
b7d380ae506091cf46ecb3e50bb6cc8fd2d969c30cb9e882f33b68be45a03700 eb30c911c9974992b249d2c54f3e85084a8fbc7155b8da806798b1d8a9572e4d
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3091AF73E4DCD404239266588D489CB937D8EFD9" #pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52D23A0064CD987DE513B625A2CB3D7A7294BC6C"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -107,7 +107,7 @@ namespace InnoLabProjektDektopApp { ...@@ -107,7 +107,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 124 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox FocusPeriodComboBox; internal System.Windows.Controls.ComboBox FocusPeriodComboBox;
...@@ -115,7 +115,7 @@ namespace InnoLabProjektDektopApp { ...@@ -115,7 +115,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 140 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 144 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox BreakPeriodComboBox; internal System.Windows.Controls.ComboBox BreakPeriodComboBox;
...@@ -123,7 +123,7 @@ namespace InnoLabProjektDektopApp { ...@@ -123,7 +123,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 155 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 161 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CyclesComboBox; internal System.Windows.Controls.ComboBox CyclesComboBox;
...@@ -199,21 +199,39 @@ namespace InnoLabProjektDektopApp { ...@@ -199,21 +199,39 @@ namespace InnoLabProjektDektopApp {
case 9: case 9:
this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 124 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged); this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
#line default
#line hidden
#line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.FocusPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default #line default
#line hidden #line hidden
return; return;
case 10: case 10:
this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 144 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.BreakPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 11: case 11:
this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target)); this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 161 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.CyclesComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 12: case 12:
#line 168 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 174 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveSettingsButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveSettingsButton_Click);
#line default #line default
...@@ -221,7 +239,7 @@ namespace InnoLabProjektDektopApp { ...@@ -221,7 +239,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 13: case 13:
#line 171 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 177 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToOverviewButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToOverviewButton_Click);
#line default #line default
......
#pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3091AF73E4DCD404239266588D489CB937D8EFD9" #pragma checksum "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52D23A0064CD987DE513B625A2CB3D7A7294BC6C"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -107,7 +107,7 @@ namespace InnoLabProjektDektopApp { ...@@ -107,7 +107,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 124 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox FocusPeriodComboBox; internal System.Windows.Controls.ComboBox FocusPeriodComboBox;
...@@ -115,7 +115,7 @@ namespace InnoLabProjektDektopApp { ...@@ -115,7 +115,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 140 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 144 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox BreakPeriodComboBox; internal System.Windows.Controls.ComboBox BreakPeriodComboBox;
...@@ -123,7 +123,7 @@ namespace InnoLabProjektDektopApp { ...@@ -123,7 +123,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 155 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 161 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CyclesComboBox; internal System.Windows.Controls.ComboBox CyclesComboBox;
...@@ -199,21 +199,39 @@ namespace InnoLabProjektDektopApp { ...@@ -199,21 +199,39 @@ namespace InnoLabProjektDektopApp {
case 9: case 9:
this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 124 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged); this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
#line default
#line hidden
#line 125 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.FocusPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default #line default
#line hidden #line hidden
return; return;
case 10: case 10:
this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 144 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.BreakPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 11: case 11:
this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target)); this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 161 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
this.CyclesComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 12: case 12:
#line 168 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 174 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveSettingsButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveSettingsButton_Click);
#line default #line default
...@@ -221,7 +239,7 @@ namespace InnoLabProjektDektopApp { ...@@ -221,7 +239,7 @@ namespace InnoLabProjektDektopApp {
return; return;
case 13: case 13:
#line 171 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml" #line 177 "..\..\..\..\..\Screens\FirstLaunch\04Settings.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToOverviewButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToOverviewButton_Click);
#line default #line default
......
#pragma checksum "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "27EFD47612E883094FA6DDB67E9E552CC96BCE5B" #pragma checksum "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "455C6EF69FB9B51C9247D43B3EE496D7D697FBAC"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -43,7 +43,7 @@ namespace InnoLabProjektDektopApp { ...@@ -43,7 +43,7 @@ namespace InnoLabProjektDektopApp {
public partial class Overview : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector { public partial class Overview : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
#line 85 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox FocusPeriodComboBox; internal System.Windows.Controls.ComboBox FocusPeriodComboBox;
...@@ -51,7 +51,7 @@ namespace InnoLabProjektDektopApp { ...@@ -51,7 +51,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 101 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 96 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox BreakPeriodComboBox; internal System.Windows.Controls.ComboBox BreakPeriodComboBox;
...@@ -59,7 +59,7 @@ namespace InnoLabProjektDektopApp { ...@@ -59,7 +59,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 116 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 112 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CyclesComboBox; internal System.Windows.Controls.ComboBox CyclesComboBox;
...@@ -67,7 +67,23 @@ namespace InnoLabProjektDektopApp { ...@@ -67,7 +67,23 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 129 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 123 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel SecondsWarningPanel;
#line default
#line hidden
#line 125 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox SecondsWarningComboBox;
#line default
#line hidden
#line 136 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox DistractionModeComboBox; internal System.Windows.Controls.ComboBox DistractionModeComboBox;
...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp { ...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 139 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 145 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox MascotVisibilityComboBox; internal System.Windows.Controls.ComboBox MascotVisibilityComboBox;
...@@ -83,7 +99,15 @@ namespace InnoLabProjektDektopApp { ...@@ -83,7 +99,15 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 149 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 151 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel MotivationOptionsPanel;
#line default
#line hidden
#line 154 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox WordsOfAffirmationCheckBox; internal System.Windows.Controls.CheckBox WordsOfAffirmationCheckBox;
...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp { ...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 155 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 158 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox InsultingWordsCheckBox; internal System.Windows.Controls.CheckBox InsultingWordsCheckBox;
...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp { ...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 169 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 171 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox FocusTopicInputBox; internal System.Windows.Controls.TextBox FocusTopicInputBox;
...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp { ...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 178 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 180 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock FocusTopicPlaceholder; internal System.Windows.Controls.TextBlock FocusTopicPlaceholder;
...@@ -162,40 +186,85 @@ namespace InnoLabProjektDektopApp { ...@@ -162,40 +186,85 @@ namespace InnoLabProjektDektopApp {
return; return;
case 3: case 3:
this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
#line default
#line hidden
#line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 4: case 4:
this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 96 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.BreakPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 5: case 5:
this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target)); this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 112 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.CyclesComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 6: case 6:
this.DistractionModeComboBox = ((System.Windows.Controls.ComboBox)(target)); this.SecondsWarningPanel = ((System.Windows.Controls.StackPanel)(target));
return; return;
case 7: case 7:
this.MascotVisibilityComboBox = ((System.Windows.Controls.ComboBox)(target)); this.SecondsWarningComboBox = ((System.Windows.Controls.ComboBox)(target));
return; return;
case 8: case 8:
this.WordsOfAffirmationCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.DistractionModeComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 136 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.DistractionModeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DistractionMode_SelectionChanged);
#line default
#line hidden
return; return;
case 9: case 9:
this.InsultingWordsCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.MascotVisibilityComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 145 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.MascotVisibilityComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MascotVisibilityComboBox_SelectionChanged);
#line default
#line hidden
return; return;
case 10: case 10:
this.MotivationOptionsPanel = ((System.Windows.Controls.StackPanel)(target));
return;
case 11:
this.WordsOfAffirmationCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 12:
this.InsultingWordsCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 13:
this.FocusTopicInputBox = ((System.Windows.Controls.TextBox)(target)); this.FocusTopicInputBox = ((System.Windows.Controls.TextBox)(target));
#line 177 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 179 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusTopicInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FocusTopicInputBox_TextChanged); this.FocusTopicInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FocusTopicInputBox_TextChanged);
#line default #line default
#line hidden #line hidden
return; return;
case 11: case 14:
this.FocusTopicPlaceholder = ((System.Windows.Controls.TextBlock)(target)); this.FocusTopicPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return; return;
case 12: case 15:
#line 190 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 192 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);
#line default #line default
......
#pragma checksum "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "27EFD47612E883094FA6DDB67E9E552CC96BCE5B" #pragma checksum "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "455C6EF69FB9B51C9247D43B3EE496D7D697FBAC"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
...@@ -43,7 +43,7 @@ namespace InnoLabProjektDektopApp { ...@@ -43,7 +43,7 @@ namespace InnoLabProjektDektopApp {
public partial class Overview : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector { public partial class Overview : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
#line 85 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox FocusPeriodComboBox; internal System.Windows.Controls.ComboBox FocusPeriodComboBox;
...@@ -51,7 +51,7 @@ namespace InnoLabProjektDektopApp { ...@@ -51,7 +51,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 101 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 96 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox BreakPeriodComboBox; internal System.Windows.Controls.ComboBox BreakPeriodComboBox;
...@@ -59,7 +59,7 @@ namespace InnoLabProjektDektopApp { ...@@ -59,7 +59,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 116 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 112 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox CyclesComboBox; internal System.Windows.Controls.ComboBox CyclesComboBox;
...@@ -67,7 +67,23 @@ namespace InnoLabProjektDektopApp { ...@@ -67,7 +67,23 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 129 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 123 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel SecondsWarningPanel;
#line default
#line hidden
#line 125 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox SecondsWarningComboBox;
#line default
#line hidden
#line 136 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox DistractionModeComboBox; internal System.Windows.Controls.ComboBox DistractionModeComboBox;
...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp { ...@@ -75,7 +91,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 139 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 145 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox MascotVisibilityComboBox; internal System.Windows.Controls.ComboBox MascotVisibilityComboBox;
...@@ -83,7 +99,15 @@ namespace InnoLabProjektDektopApp { ...@@ -83,7 +99,15 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 149 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 151 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel MotivationOptionsPanel;
#line default
#line hidden
#line 154 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox WordsOfAffirmationCheckBox; internal System.Windows.Controls.CheckBox WordsOfAffirmationCheckBox;
...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp { ...@@ -91,7 +115,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 155 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 158 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox InsultingWordsCheckBox; internal System.Windows.Controls.CheckBox InsultingWordsCheckBox;
...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp { ...@@ -99,7 +123,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 169 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 171 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox FocusTopicInputBox; internal System.Windows.Controls.TextBox FocusTopicInputBox;
...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp { ...@@ -107,7 +131,7 @@ namespace InnoLabProjektDektopApp {
#line hidden #line hidden
#line 178 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 180 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock FocusTopicPlaceholder; internal System.Windows.Controls.TextBlock FocusTopicPlaceholder;
...@@ -162,40 +186,85 @@ namespace InnoLabProjektDektopApp { ...@@ -162,40 +186,85 @@ namespace InnoLabProjektDektopApp {
return; return;
case 3: case 3:
this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.FocusPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusPeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
#line default
#line hidden
#line 78 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 4: case 4:
this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target)); this.BreakPeriodComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 96 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.BreakPeriodComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 5: case 5:
this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target)); this.CyclesComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 112 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.CyclesComboBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.ComboBox_PreviewTextInput);
#line default
#line hidden
return; return;
case 6: case 6:
this.DistractionModeComboBox = ((System.Windows.Controls.ComboBox)(target)); this.SecondsWarningPanel = ((System.Windows.Controls.StackPanel)(target));
return; return;
case 7: case 7:
this.MascotVisibilityComboBox = ((System.Windows.Controls.ComboBox)(target)); this.SecondsWarningComboBox = ((System.Windows.Controls.ComboBox)(target));
return; return;
case 8: case 8:
this.WordsOfAffirmationCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.DistractionModeComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 136 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.DistractionModeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DistractionMode_SelectionChanged);
#line default
#line hidden
return; return;
case 9: case 9:
this.InsultingWordsCheckBox = ((System.Windows.Controls.CheckBox)(target)); this.MascotVisibilityComboBox = ((System.Windows.Controls.ComboBox)(target));
#line 145 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.MascotVisibilityComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MascotVisibilityComboBox_SelectionChanged);
#line default
#line hidden
return; return;
case 10: case 10:
this.MotivationOptionsPanel = ((System.Windows.Controls.StackPanel)(target));
return;
case 11:
this.WordsOfAffirmationCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 12:
this.InsultingWordsCheckBox = ((System.Windows.Controls.CheckBox)(target));
return;
case 13:
this.FocusTopicInputBox = ((System.Windows.Controls.TextBox)(target)); this.FocusTopicInputBox = ((System.Windows.Controls.TextBox)(target));
#line 177 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 179 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
this.FocusTopicInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FocusTopicInputBox_TextChanged); this.FocusTopicInputBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FocusTopicInputBox_TextChanged);
#line default #line default
#line hidden #line hidden
return; return;
case 11: case 14:
this.FocusTopicPlaceholder = ((System.Windows.Controls.TextBlock)(target)); this.FocusTopicPlaceholder = ((System.Windows.Controls.TextBlock)(target));
return; return;
case 12: case 15:
#line 190 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml" #line 192 "..\..\..\..\..\Screens\Regulaer\01Overview.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_Click); ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);
#line default #line default
......
#pragma checksum "..\..\..\..\..\Screens\Regulaer\04Statistics.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "B7879C038C97A981468360F56AAAC9CA70CFB68E" #pragma checksum "..\..\..\..\..\Screens\Regulaer\04Statistics.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "01B55004193E3CC05C4C67CFCD081BC8DD5D338C"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
......
#pragma checksum "..\..\..\..\..\Screens\Regulaer\04Statistics.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "B7879C038C97A981468360F56AAAC9CA70CFB68E" #pragma checksum "..\..\..\..\..\Screens\Regulaer\04Statistics.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "01B55004193E3CC05C4C67CFCD081BC8DD5D338C"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <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.
Finish editing this message first!
Please register or to comment