Daten um Vermesser und Aufnahmedatum erweitert

This commit is contained in:
2023-04-24 14:27:50 +02:00
parent 8bfe685072
commit d511c74509
8 changed files with 55 additions and 19 deletions

View File

@@ -89,7 +89,6 @@ namespace StammGenerator.ViewModel
}
}
}
public decimal SohlHoehe
{
get => _model.SohlHoehe;
@@ -102,6 +101,30 @@ namespace StammGenerator.ViewModel
}
}
}
public string Vermesser
{
get => _model.Vermesser;
set
{
if(_model.Vermesser != value)
{
_model.Vermesser = value;
OnPropertyChanged();
}
}
}
public string AufnahmeDatum
{
get => _model.AufnahmeDatum;
set
{
if(_model.AufnahmeDatum != value)
{
_model.AufnahmeDatum = value;
OnPropertyChanged();
}
}
}
public EEntwaeserung Entwaeserung
{
get => _model.Entwaesserung;

View File

@@ -20,7 +20,7 @@
</DataGrid>
<Button Content="Hinzufügen" Command="{Binding AddCommand}" />
<Button Content="Editieren" Command="{Binding EditCommand}" />
<Button Content="Daten Exportieren" Command="{Binding ExportCommand}" Width="220" Height="220" BorderBrush="AliceBlue" BorderThickness="5" HorizontalAlignment="Left" />
<!--<Button Content="Daten Exportieren" Command="{Binding ExportCommand}" Width="220" Height="220" BorderBrush="AliceBlue" BorderThickness="5" HorizontalAlignment="Left" />-->
</StackPanel>
</Grid>
</UserControl>

View File

@@ -27,6 +27,8 @@
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
@@ -37,8 +39,9 @@
<Label Grid.Column="0" Grid.Row="4" Content="Sohl Rechtswert" />
<Label Grid.Column="0" Grid.Row="5" Content="Sohl Hochwert" />
<Label Grid.Column="0" Grid.Row="6" Content="Sohl Höhe" />
<!--<Label Grid.Column="0" Grid.Row="7" Content="Deckelhöhe" />-->
<Label Grid.Column="0" Grid.Row="7" Content="Entwässerungsart" />
<Label Grid.Column="0" Grid.Row="7" Content="Vermesser" />
<Label Grid.Column="0" Grid.Row="8" Content="Aufnahmedatum" />
<Label Grid.Column="0" Grid.Row="9" Content="Entwässerungsart" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="0" Text="{Binding Objektbezeichnung}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="1" Text="{Binding DeckelRechtsWert}" />
@@ -47,15 +50,17 @@
<TextBox Margin="2" Grid.Column="1" Grid.Row="4" Text="{Binding SohlRechtsWert}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="5" Text="{Binding SohlHochWert}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="6" Text="{Binding SohlHoehe}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="7" Text="{Binding Vermesser}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="8" Text="{Binding AufnahmeDatum}" />
<DockPanel Grid.Column="1" Grid.Row="7">
<DockPanel Grid.Column="1" Grid.Row="9">
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Regenwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Regenwasser}}" />
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Schmutzwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Schmutzwasser}}" />
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Mischwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Mischwasser}}" />
</DockPanel>
<StackPanel Grid.ColumnSpan="2" Grid.Row="8">
<StackPanel Grid.ColumnSpan="2" Grid.Row="10">
<Button Content="Speichern" Command="{Binding Speichern}" />
</StackPanel>