private void OnEditButtonClicked(object sender, RoutedEventArgs e) { var game = (sender as Button).Tag as Game; if (game == null) { return; } var editor = new GameItemEditor(game); editor.ShowDialog(); }
private void OnAddGameClicked(object sender, System.Windows.RoutedEventArgs e) { var editor = new GameItemEditor(); editor.ShowDialog(); }