-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HelperClass to check if service is available to avoid errors.
- Loading branch information
1 parent
a9e83f2
commit 3ac4311
Showing
42 changed files
with
1,151 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
LigaManagerAdminClient/Controllers/AddBettorWindowController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using LigaManagerAdminClient.AdminClientService; | ||
using LigaManagerAdminClient.ViewModels; | ||
using LigaManagerAdminClient.Views; | ||
using LigaManagerBettorClient.Frameworks; | ||
|
||
namespace LigaManagerAdminClient.Controllers | ||
{ | ||
public class AddBettorWindowController | ||
{ | ||
private AddBettorWindow _view; | ||
private AddBettorWindowViewModel _viewModel; | ||
|
||
public Bet Bet { get; set; } | ||
|
||
public Bettor ShowBettor() | ||
{ | ||
#region View and ViewModel | ||
_view = new AddBettorWindow(); | ||
_viewModel = new AddBettorWindowViewModel | ||
{ | ||
OkCommand = new RelayCommand(ExecuteOkCommand), | ||
CancelCommand = new RelayCommand(ExecuteCancelCommand) | ||
}; | ||
#endregion | ||
|
||
return _view.ShowDialog() == true ? _viewModel.Bettor : null; | ||
} | ||
|
||
public void ExecuteOkCommand(object obj) | ||
{ | ||
_view.DialogResult = true; | ||
_view.Close(); | ||
} | ||
|
||
public void ExecuteCancelCommand(object obj) | ||
{ | ||
_view.DialogResult = false; | ||
_view.Close(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.