Button besser
This commit is contained in:
parent
8cc0eb62ee
commit
1d73b8607b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Controller")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Controller")]
|
||||||
[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+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Controller")]
|
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Controller")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Controller")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Controller")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
e7b322b31da6702bd8fe7d53b83645020505c1ad7318739a0b5cdd9dfc0dde15
|
b26810a9701a80bd8d247c92ecf69824a86d42eff82b9218864ad2356c15c28a
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Model")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Model")]
|
||||||
[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+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Model")]
|
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Model")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Model")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Model")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
1396b3ce6da72bd679b29887d28ac5d332cff2eb0de90d2707d5bce268e6c80d
|
1f8bedf408b8f59454ecc9fe6bdd5c389ea72f6f52e0c888b1f255e3586460ec
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Persistence")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Persistence")]
|
||||||
[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+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Persistence")]
|
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Persistence")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Persistence")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Persistence")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
e56b7dd48342043456665ffc9aa4f0072231f58ee5b6bcd43379b228c6c7a7c8
|
4b1690178df789d1c5fd4816cf36ec319f0ceb403af602830b6577406a3b49da
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -4,7 +4,8 @@
|
|||||||
x:Class="AquaCare.View.PflegeWindow"
|
x:Class="AquaCare.View.PflegeWindow"
|
||||||
xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
Title="Pflege Werte eintragen"
|
Title="Pflege Werte eintragen"
|
||||||
Width="600" Height="500">
|
Width="600" Height="500"
|
||||||
|
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
|
||||||
<Grid>
|
<Grid>
|
||||||
<!-- Hintergrundbild ins äußere Grid verschieben -->
|
<!-- Hintergrundbild ins äußere Grid verschieben -->
|
||||||
<Grid.Background>
|
<Grid.Background>
|
||||||
|
|||||||
BIN
AquaCare.View/Ressourcen/BilderTutorials/Beispiele/Pfeil.png
Normal file
BIN
AquaCare.View/Ressourcen/BilderTutorials/Beispiele/Pfeil.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@ -4,12 +4,13 @@
|
|||||||
<!-- Allgemeiner Button-Style -->
|
<!-- Allgemeiner Button-Style -->
|
||||||
<Style Selector="Button">
|
<Style Selector="Button">
|
||||||
<Setter Property="FontSize" Value="30"/>
|
<Setter Property="FontSize" Value="30"/>
|
||||||
<Setter Property="Background" Value="#808080"/>
|
<Setter Property="Background" Value="#80B8B8B8"/> <!-- 80 macht es 50% transparent -->
|
||||||
<Setter Property="Foreground" Value="#BEBEBE"/>
|
<Setter Property="Foreground" Value="#2B2B2B"/>
|
||||||
<Setter Property="FontWeight" Value="Bold"/>
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
<Setter Property="Margin" Value="5"/>
|
<Setter Property="Margin" Value="5"/>
|
||||||
|
<Setter Property="CornerRadius" Value="10"/> <!-- Fügt abgerundete Ecken hinzu -->
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Image Button-Style -->
|
<!-- Image Button-Style -->
|
||||||
|
|||||||
@ -6,8 +6,6 @@
|
|||||||
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
|
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
|
|
||||||
<Grid.Background>
|
<Grid.Background>
|
||||||
<ImageBrush Source="avares://AquaCare.View/Ressourcen/Bilder/TutorialsHintergrund.png" Stretch="UniformToFill"/>
|
<ImageBrush Source="avares://AquaCare.View/Ressourcen/Bilder/TutorialsHintergrund.png" Stretch="UniformToFill"/>
|
||||||
</Grid.Background>
|
</Grid.Background>
|
||||||
@ -18,13 +16,6 @@
|
|||||||
<RowDefinition Height="Auto"/> <!-- Tutorial-Inhalt -->
|
<RowDefinition Height="Auto"/> <!-- Tutorial-Inhalt -->
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Überschrift -->
|
|
||||||
<TextBlock Grid.Row="0"
|
|
||||||
Text="Was kannst du nicht ?"
|
|
||||||
FontSize="24"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Margin="0,5,0,0"/>
|
|
||||||
|
|
||||||
<!-- Buttons für Tutorials -->
|
<!-- Buttons für Tutorials -->
|
||||||
<StackPanel Grid.Row="1"
|
<StackPanel Grid.Row="1"
|
||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
@ -49,10 +40,11 @@
|
|||||||
|
|
||||||
<!-- TextBlock für Bildindex -->
|
<!-- TextBlock für Bildindex -->
|
||||||
<TextBlock x:Name="imageIndexTextBlock"
|
<TextBlock x:Name="imageIndexTextBlock"
|
||||||
Text="Bild 1 von 3"
|
Text="Bitte wählen Sie ein Tutorial aus"
|
||||||
FontSize="18"
|
FontSize="24"
|
||||||
|
FontWeight="Bold"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Margin="0,5,0,5"/>
|
Margin="0,10,0,10"/>
|
||||||
|
|
||||||
<!-- Navigation unter dem Bild -->
|
<!-- Navigation unter dem Bild -->
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="2" Margin="0,5,0,0">
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="2" Margin="0,5,0,0">
|
||||||
@ -60,7 +52,6 @@
|
|||||||
<Button Content="Weiter" Click="NextImageClick" />
|
<Button Content="Weiter" Click="NextImageClick" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@ -7,19 +7,20 @@ namespace AquaCare.View
|
|||||||
{
|
{
|
||||||
public partial class TutorialsWindow : Window
|
public partial class TutorialsWindow : Window
|
||||||
{
|
{
|
||||||
private List<string> _images; // Liste der Bildpfade
|
private List<string> _images;
|
||||||
private int _currentImageIndex; // Aktueller Index des angezeigten Bildes
|
private int _currentImageIndex;
|
||||||
|
private TextBlock _imageIndexTextBlock;
|
||||||
|
|
||||||
public TutorialsWindow()
|
public TutorialsWindow()
|
||||||
{
|
{
|
||||||
_images = new List<string>(); // Initialize the field to avoid null
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
_images = new List<string>();
|
||||||
|
_imageIndexTextBlock = this.Find<TextBlock>("imageIndexTextBlock");
|
||||||
InitializeTutorial();
|
InitializeTutorial();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeTutorial()
|
private void InitializeTutorial()
|
||||||
{
|
{
|
||||||
// Beispielbilder für das Tutorial
|
|
||||||
_images = new List<string>
|
_images = new List<string>
|
||||||
{
|
{
|
||||||
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
||||||
@ -27,43 +28,48 @@ namespace AquaCare.View
|
|||||||
"Ressourcen/BilderTutorials/Beispiele/3.jpg"
|
"Ressourcen/BilderTutorials/Beispiele/3.jpg"
|
||||||
};
|
};
|
||||||
_currentImageIndex = 0;
|
_currentImageIndex = 0;
|
||||||
|
|
||||||
UpdateTutorialContent();
|
UpdateTutorialContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateTutorialContent()
|
private void UpdateTutorialContent()
|
||||||
{
|
{
|
||||||
// Aktualisiert das angezeigte Bild und den Text
|
|
||||||
if (_images.Count > 0 && _currentImageIndex >= 0 && _currentImageIndex < _images.Count)
|
if (_images.Count > 0 && _currentImageIndex >= 0 && _currentImageIndex < _images.Count)
|
||||||
{
|
{
|
||||||
tutorialImage.Source = new Bitmap(_images[_currentImageIndex]);
|
tutorialImage.Source = new Bitmap(_images[_currentImageIndex]);
|
||||||
|
_imageIndexTextBlock.Text = $"Bild {_currentImageIndex + 1} von {_images.Count}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PreviousImageClick(object? sender, RoutedEventArgs e)
|
private void PreviousImageClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Gehe zum vorherigen Bild, falls möglich
|
|
||||||
if (_currentImageIndex > 0)
|
if (_currentImageIndex > 0)
|
||||||
{
|
{
|
||||||
_currentImageIndex--;
|
_currentImageIndex--;
|
||||||
UpdateTutorialContent();
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Wenn wir beim ersten Bild sind, zum letzten springen
|
||||||
|
_currentImageIndex = _images.Count - 1;
|
||||||
|
}
|
||||||
|
UpdateTutorialContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NextImageClick(object? sender, RoutedEventArgs e)
|
private void NextImageClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Gehe zum nächsten Bild, falls möglich
|
|
||||||
if (_currentImageIndex < _images.Count - 1)
|
if (_currentImageIndex < _images.Count - 1)
|
||||||
{
|
{
|
||||||
_currentImageIndex++;
|
_currentImageIndex++;
|
||||||
UpdateTutorialContent();
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Wenn wir beim letzten Bild sind, zurück zum ersten springen
|
||||||
|
_currentImageIndex = 0;
|
||||||
|
}
|
||||||
|
UpdateTutorialContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FischeFütternClick(object? sender, RoutedEventArgs e)
|
private void FischeFütternClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Beispiel: Lade Bilder für das "Fische füttern"-Tutorial
|
|
||||||
_images = new List<string>
|
_images = new List<string>
|
||||||
{
|
{
|
||||||
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
||||||
@ -76,7 +82,6 @@ namespace AquaCare.View
|
|||||||
|
|
||||||
private void WasserWechselnClick(object? sender, RoutedEventArgs e)
|
private void WasserWechselnClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Beispiel: Lade Bilder für das "Wasser wechseln"-Tutorial
|
|
||||||
_images = new List<string>
|
_images = new List<string>
|
||||||
{
|
{
|
||||||
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
||||||
@ -89,7 +94,6 @@ namespace AquaCare.View
|
|||||||
|
|
||||||
private void FilterReinigenClick(object? sender, RoutedEventArgs e)
|
private void FilterReinigenClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Beispiel: Lade Bilder für das "Filter reinigen"-Tutorial
|
|
||||||
_images = new List<string>
|
_images = new List<string>
|
||||||
{
|
{
|
||||||
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
"Ressourcen/BilderTutorials/Beispiele/1.jpg",
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.View")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.View")]
|
||||||
[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+52e84eef603a5d794883bebebdb43f1496ad8c8b")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11383fc75a9f1f764ac2f8fef2dd8f2da0c7e2b8")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.View")]
|
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.View")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.View")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.View")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
95878c16f7dc6422f2be2fa50d64672d2b2fa99f479599bc77f69e2e80fd2eb9
|
8a14db02d022de50302e5b23ec47b97276b170631ab2e0c8f66201348cd0502c
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
f72c1e88ea2604c503b4147ccae23e8e3465286483aeb07cf387ac376c1d6fb6
|
568de61c09a2d71f5b614d8e24749c223f330b05f9d54bd9ed27f337473a5bde
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user