-
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.
- Loading branch information
1 parent
4046af2
commit 1c617cd
Showing
47 changed files
with
353 additions
and
69 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
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
53 changes: 53 additions & 0 deletions
53
LigaManagerAdminClient/Controllers/SetMatchDayWindowController.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,53 @@ | ||
using System; | ||
using System.Windows; | ||
using LigaManagerAdminClient.ViewModels; | ||
using LigaManagerAdminClient.Views; | ||
using LigaManagerBettorClient.Frameworks; | ||
|
||
namespace LigaManagerAdminClient.Controllers | ||
{ | ||
public class SetMatchDayWindowController | ||
{ | ||
private SetMatchDayWindow _view; | ||
private SetMatchDayWindowViewModel _viewModel; | ||
public int MatchDay { get; set; } | ||
public int SetMatchDay() | ||
{ | ||
#region View and ViewModel | ||
_view = new SetMatchDayWindow(); | ||
_viewModel = new SetMatchDayWindowViewModel | ||
{ | ||
OkCommand = new RelayCommand(ExecuteOkCommand), | ||
CancelCommand = new RelayCommand(ExecuteCancelCommand), | ||
MatchDay = MatchDay | ||
|
||
}; | ||
_view.DataContext = _viewModel; | ||
#endregion | ||
|
||
return _view.ShowDialog() == true ? _viewModel.MatchDay : -1; | ||
} | ||
#region Execute Commands | ||
public void ExecuteOkCommand(object obj) | ||
{ | ||
if (_view.MatchDayTextBox.Equals(string.Empty)) | ||
{ | ||
MessageBox.Show("Spieltag ist leer!", "Kein Spieltag ausgewählt", | ||
MessageBoxButton.OK, MessageBoxImage.Error); | ||
} | ||
else | ||
{ | ||
_view.DialogResult = true; | ||
_view.Close(); | ||
} | ||
|
||
} | ||
|
||
public void ExecuteCancelCommand(object obj) | ||
{ | ||
_view.DialogResult = false; | ||
_view.Close(); | ||
} | ||
#endregion | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
12 changes: 12 additions & 0 deletions
12
LigaManagerAdminClient/ViewModels/SetMatchDayWindowViewModel.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,12 @@ | ||
using System.Windows.Input; | ||
using LigaManagerAdminClient.Framework; | ||
|
||
namespace LigaManagerAdminClient.ViewModels | ||
{ | ||
public class SetMatchDayWindowViewModel : ViewModelBase | ||
{ | ||
public int MatchDay { get; set; } | ||
public ICommand OkCommand { get; set; } | ||
public ICommand CancelCommand { get; set; } | ||
} | ||
} |
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.