before conected to database
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 75 KiB |
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<custom:Modal Grid.RowSpan="2" Panel.ZIndex="1" IsOpen="{Binding IsModalOpen}">
|
<custom:Modal Grid.RowSpan="2" Panel.ZIndex="1" IsOpen="{Binding IsModalOpen}">
|
||||||
|
|
||||||
<ContentControl Margin="100 50 100 50" Content="{Binding CurrentModalViewModel}"/>
|
<ContentControl Margin="30" Content="{Binding CurrentModalViewModel}"/>
|
||||||
</custom:Modal>
|
</custom:Modal>
|
||||||
|
|
||||||
<views:OverviewView Grid.RowSpan="2"
|
<views:OverviewView Grid.RowSpan="2"
|
||||||
|
|||||||
@@ -32,13 +32,15 @@ namespace Apollon.WPF.ViewModels
|
|||||||
|
|
||||||
protected override void Dispose()
|
protected override void Dispose()
|
||||||
{
|
{
|
||||||
|
|
||||||
_selectedTournamentStore.SelectedTournamentChanged -= SelectedTournamentStore_SelectedTournamentChanged;
|
_selectedTournamentStore.SelectedTournamentChanged -= SelectedTournamentStore_SelectedTournamentChanged;
|
||||||
|
|
||||||
base.Dispose();
|
base.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SelectedTournamentStore_SelectedTournamentChanged()
|
private void SelectedTournamentStore_SelectedTournamentChanged()
|
||||||
{
|
{
|
||||||
OnPropertyChanged(nameof(HasSelectedTournament));
|
//OnPropertyChanged(nameof(HasSelectedTournament));
|
||||||
OnPropertyChanged(nameof(Organisation));
|
OnPropertyChanged(nameof(Organisation));
|
||||||
OnPropertyChanged(nameof(TournamentName));
|
OnPropertyChanged(nameof(TournamentName));
|
||||||
OnPropertyChanged(nameof(Competition));
|
OnPropertyChanged(nameof(Competition));
|
||||||
|
|||||||
@@ -23,21 +23,27 @@
|
|||||||
|
|
||||||
<TextBlock Text="Veranstalter: "
|
<TextBlock Text="Veranstalter: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
Text="Turniername: "
|
Text="Turniername: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="2"
|
<TextBlock Grid.Row="2"
|
||||||
Text="Wettkampfart: "
|
Text="Wettkampfart: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="3"
|
<TextBlock Grid.Row="3"
|
||||||
Text="Startdatum: "
|
Text="Startdatum: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="4"
|
<TextBlock Grid.Row="4"
|
||||||
Text="Enddatum: "
|
Text="Enddatum: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="5"
|
<TextBlock Grid.Row="5"
|
||||||
Text="Veranstaltungsort: "
|
Text="Veranstaltungsort: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="6"
|
<TextBlock Grid.Row="6"
|
||||||
Text="Durchgänge: "
|
Text="Durchgänge: "
|
||||||
Style="{StaticResource ModalTextBlock}"/>
|
Style="{StaticResource ModalTextBlock}"/>
|
||||||
@@ -49,6 +55,7 @@
|
|||||||
Height="30"
|
Height="30"
|
||||||
Background="LightGray"
|
Background="LightGray"
|
||||||
VerticalContentAlignment="Center"/>
|
VerticalContentAlignment="Center"/>
|
||||||
|
|
||||||
<TextBox Grid.Row="1"
|
<TextBox Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Text="{Binding TournamentName, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding TournamentName, UpdateSourceTrigger=PropertyChanged}"
|
||||||
@@ -57,23 +64,39 @@
|
|||||||
Height="30"
|
Height="30"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
Background="LightGray"/>
|
Background="LightGray"/>
|
||||||
|
|
||||||
<ComboBox Grid.Row="2"
|
<ComboBox Grid.Row="2"
|
||||||
|
x:Name="ComboBox"
|
||||||
Text="{Binding Competition}"
|
Text="{Binding Competition}"
|
||||||
|
IsReadOnly="False"
|
||||||
IsEditable="True"
|
IsEditable="True"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Height="30"
|
Height="30"
|
||||||
Width="150"
|
Width="150"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
|
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left">
|
||||||
|
<ComboBoxItem Content="Halle"></ComboBoxItem>
|
||||||
|
<ComboBoxItem Content="im Freien"></ComboBoxItem>
|
||||||
|
<ComboBoxItem Content="Feld"></ComboBoxItem>
|
||||||
|
<ComboBoxItem Content="3 D"></ComboBoxItem>
|
||||||
|
</ComboBox>
|
||||||
|
|
||||||
|
<Image x:Name="CompetitionImage"
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.Column="1"
|
||||||
|
Grid.RowSpan="2"
|
||||||
|
Height="80"
|
||||||
|
Width="80"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0 0 80 0"/>
|
||||||
|
|
||||||
<DatePicker SelectedDateFormat="Long"
|
<DatePicker SelectedDateFormat="Long"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
SelectedDate="{Binding StartDate}"
|
SelectedDate="{Binding StartDate}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontSize="16"
|
FontSize="14"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
<DatePicker SelectedDateFormat="Long"
|
<DatePicker SelectedDateFormat="Long"
|
||||||
@@ -81,7 +104,7 @@
|
|||||||
SelectedDate="{Binding EndDate}"
|
SelectedDate="{Binding EndDate}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontSize="16"
|
FontSize="14"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
<TextBox Grid.Row="5"
|
<TextBox Grid.Row="5"
|
||||||
@@ -112,14 +135,15 @@
|
|||||||
<ColumnDefinition/>
|
<ColumnDefinition/>
|
||||||
<ColumnDefinition/>
|
<ColumnDefinition/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Button Content="Speichern"
|
<Button Content="Speichern"
|
||||||
Command="{Binding SubmitCommand}"
|
Command="{Binding SubmitCommand}"
|
||||||
Style="{StaticResource ModernButton}"
|
Style="{StaticResource ModernButton}"
|
||||||
Width="120"
|
Width="120"
|
||||||
Height="35"
|
Height="35"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
IsEnabled="{Binding CanSubmit}">
|
IsEnabled="{Binding CanSubmit}"/>
|
||||||
</Button>
|
|
||||||
<Button Content="Abbrechen"
|
<Button Content="Abbrechen"
|
||||||
Command="{Binding CancelCommand}"
|
Command="{Binding CancelCommand}"
|
||||||
Style="{StaticResource ModernButton}"
|
Style="{StaticResource ModernButton}"
|
||||||
@@ -128,8 +152,5 @@
|
|||||||
FontSize="16"
|
FontSize="16"
|
||||||
Grid.Column="1"/>
|
Grid.Column="1"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ namespace Apollon.WPF.Views.Components
|
|||||||
public AddEditDetails()
|
public AddEditDetails()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</TextBlock.Style>
|
</TextBlock.Style>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="{Binding TournamentName}"
|
<TextBlock Text="{Binding TournamentName}"
|
||||||
TextAlignment="Center"
|
TextAlignment="Center"
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Grid.Row="2"
|
<StackPanel Grid.Row="2"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Stretch">
|
||||||
|
|
||||||
<Image Grid.Column="2"
|
<Image Grid.Column="2"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
|
|||||||
Reference in New Issue
Block a user