69 lines
3.6 KiB
XML
69 lines
3.6 KiB
XML
<!--
|
|
Fenster zur Eingabe und Speicherung von Pflegemaßnahmen und Messwerten.
|
|
Enthält Felder für Datum, Checkboxen für Aktionen, Eingabefelder für Werte und einen Speichern-Button.
|
|
-->
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/express/blend/2008"
|
|
x:Class="AquaCare.View.PflegeWindow"
|
|
xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="Pflege Werte eintragen"
|
|
Width="600" Height="500"
|
|
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
|
|
<Grid>
|
|
<!-- Hintergrundbild für das Fenster -->
|
|
<Grid.Background>
|
|
<ImageBrush Source="avares://AquaCare.View/Ressourcen/Bilder/PflegeHintergrund.png"
|
|
Stretch="Fill"/>
|
|
</Grid.Background>
|
|
|
|
<!-- Haupt-Grid für die Eingabefelder und Buttons -->
|
|
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
|
|
ColumnDefinitions="Auto,*"
|
|
Margin="20"
|
|
RowSpacing="10"
|
|
ColumnSpacing="20">
|
|
|
|
<!-- Datumsauswahl -->
|
|
<TextBlock Text="Datum:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<DatePicker x:Name="DatumPicker" Width="300" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
<!-- Checkbox: Gefüttert -->
|
|
<TextBlock Text="Gefüttert:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<CheckBox x:Name="GefuettertCheckBox" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
<!-- Checkbox: Filter gereinigt -->
|
|
<TextBlock Text="Filter gereinigt:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<CheckBox x:Name="FilterReinigenCheckBox" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
<!-- Checkbox: Wasser gewechselt -->
|
|
<TextBlock Text="Wasser gewechselt:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<CheckBox x:Name="WasserWechselnCheckBox" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
<!-- Eingabefeld: Temperatur -->
|
|
<TextBlock Text="Temperatur (°C):" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="TemperaturBox" Height="30" Grid.Row="4" Grid.Column="1" Width="100"/>
|
|
|
|
<!-- Eingabefeld: pH-Wert -->
|
|
<TextBlock Text="pH-Wert:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="PhBox" Grid.Row="5" Grid.Column="1" Width="100"/>
|
|
|
|
<!-- Eingabefeld: Nitrat -->
|
|
<TextBlock Text="Nitrat (mg/l):" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="NitratBox" Grid.Row="6" Grid.Column="1" Width="100"/>
|
|
|
|
<!-- Eingabefeld: Ammoniak -->
|
|
<TextBlock Text="Ammoniak (mg/l):" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="AmmoniakBox" Grid.Row="7" Grid.Column="1" Width="100"/>
|
|
|
|
<!-- Speichern-Button -->
|
|
<Button Content="Speichern" Grid.Row="8" Grid.Column="1" Margin="0,20,0,0" HorizontalAlignment="Right" Click="SaveClick"/>
|
|
</Grid>
|
|
|
|
<!-- Mindestbreite für die zweite Spalte -->
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*" MinWidth="200"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid>
|
|
</Window> |