Disable AreaCommitmentButton
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:Elwig.Windows"
|
xmlns:local="clr-namespace:Elwig.Windows"
|
||||||
Title="Mitgliederverwaltung - Elwig" Height="600" Width="1200" MinHeight="600" MinWidth="1000"
|
Title="Mitgliederverwaltung - Elwig" Height="650" Width="1200" MinHeight="600" MinWidth="1000"
|
||||||
Loaded="Window_Loaded">
|
Loaded="Window_Loaded">
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<Style TargetType="Label">
|
<Style TargetType="Label">
|
||||||
@ -300,7 +300,7 @@
|
|||||||
<TextBlock x:Name="AreaCommitment" Text="- m²"
|
<TextBlock x:Name="AreaCommitment" Text="- m²"
|
||||||
Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,252,5,0" TextWrapping="NoWrap" VerticalAlignment="Top" FontSize="14" TextAlignment="Right"/>
|
Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,252,5,0" TextWrapping="NoWrap" VerticalAlignment="Top" FontSize="14" TextAlignment="Right"/>
|
||||||
|
|
||||||
<Button x:Name="ContractButton" Content="Flächenbindungen" Click="ContractButton_Click"
|
<Button x:Name="AreaCommitmentButton" Content="Flächenbindungen" Click="AreaCommitmentButton_Click" IsEnabled="False"
|
||||||
HorizontalAlignment="Right" Margin="10,10,10,10" VerticalAlignment="Bottom" Grid.ColumnSpan="3"/>
|
HorizontalAlignment="Right" Margin="10,10,10,10" VerticalAlignment="Bottom" Grid.ColumnSpan="3"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
@ -107,10 +107,12 @@ namespace Elwig.Windows {
|
|||||||
if (m != null) {
|
if (m != null) {
|
||||||
EditMemberButton.IsEnabled = true;
|
EditMemberButton.IsEnabled = true;
|
||||||
DeleteMemberButton.IsEnabled = true;
|
DeleteMemberButton.IsEnabled = true;
|
||||||
|
AreaCommitmentButton.IsEnabled = true;
|
||||||
FillInputs(m);
|
FillInputs(m);
|
||||||
} else {
|
} else {
|
||||||
EditMemberButton.IsEnabled = false;
|
EditMemberButton.IsEnabled = false;
|
||||||
DeleteMemberButton.IsEnabled = false;
|
DeleteMemberButton.IsEnabled = false;
|
||||||
|
AreaCommitmentButton.IsEnabled = false;
|
||||||
ClearInputs();
|
ClearInputs();
|
||||||
}
|
}
|
||||||
if (!validate) ClearInputStates();
|
if (!validate) ClearInputStates();
|
||||||
@ -211,8 +213,8 @@ namespace Elwig.Windows {
|
|||||||
UnlockSearchInputs();
|
UnlockSearchInputs();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ContractButton_Click(object sender, RoutedEventArgs evt) {
|
private void AreaCommitmentButton_Click(object sender, RoutedEventArgs evt) {
|
||||||
var w = new ContractListWindow((Member)MemberList.SelectedItem);
|
var w = new AreaCommitmentWindow((Member)MemberList.SelectedItem);
|
||||||
w.Show();
|
w.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user