Skip to content

Commit

Permalink
Update DataBase and fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanDeveloper committed Jul 1, 2017
1 parent 8788392 commit 4a3131c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ private void ExecuteBackCommand(object obj)
public async void ExecuteSelectedMatchCommand(object obj)
{
var viewModelSelectedMatch = _viewModel.SelectedMatch;
if (viewModelSelectedMatch == null)
{
MessageBox.Show("Bitte wählen Sie ein Spiel aus!", "Kein Spiel ausgewählt",
MessageBoxButton.OK, MessageBoxImage.Warning);
return;
}
var bet = _bettorClient.GetBet(viewModelSelectedMatch, _bettor);
var detailMatchWindowController = new DetailMatchWindowController
{
Expand Down Expand Up @@ -88,6 +94,7 @@ public async void ExecuteSelectedMatchCommand(object obj)
"Der Tipp konnte nicht abgegeben werden! Bitte beachten Sie, dass Sie bis spätestens 30 Minuten vor Spielbeginn tippen können!",
"Tipp fehlgeschlagen",
MessageBoxButton.OK, MessageBoxImage.Error);
LoadModels();
return;
}

Expand All @@ -103,6 +110,7 @@ public async void ExecuteSelectedMatchCommand(object obj)
MessageBoxButton.OK, MessageBoxImage.Information);
break;
}
LoadModels();
}

private ListCollectionView LoadModels()
Expand Down
Binary file modified LigaManagerServer/Database/LigaManager.db3
Binary file not shown.

0 comments on commit 4a3131c

Please sign in to comment.