private void DuplicateGame_OnExecuted(object sender, ExecutedRoutedEventArgs e) { var gameViewModel = (GameViewModel?)ViewModel.FilteredGames.CurrentItem; CommandExecutor.Execute(ViewModel.DuplicateGameCommand, gameViewModel?.GameCopyId); }
private void DeleteGame_Executed(object sender, ExecutedRoutedEventArgs e) { CommandExecutor.Execute(ViewModel.DeleteGameCommand, ViewModel.FilteredGames.CurrentItem); }
private void GameView_OnGameDoubleClick(object sender, EventArgs e) { var gameViewModel = (GameViewModel?)ViewModel.FilteredGames.CurrentItem; CommandExecutor.Execute(ViewModel.EditGameCommand, gameViewModel?.GameCopy.GameCopyId); }