Beispiel #1
0
        private void DuplicateGame_OnExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var gameViewModel = (GameViewModel?)ViewModel.FilteredGames.CurrentItem;

            CommandExecutor.Execute(ViewModel.DuplicateGameCommand, gameViewModel?.GameCopyId);
        }
Beispiel #2
0
 private void DeleteGame_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     CommandExecutor.Execute(ViewModel.DeleteGameCommand, ViewModel.FilteredGames.CurrentItem);
 }
Beispiel #3
0
        private void GameView_OnGameDoubleClick(object sender, EventArgs e)
        {
            var gameViewModel = (GameViewModel?)ViewModel.FilteredGames.CurrentItem;

            CommandExecutor.Execute(ViewModel.EditGameCommand, gameViewModel?.GameCopy.GameCopyId);
        }