private void OnRearangeMovesClicked(object sender, RoutedEventArgs e) { if (pokemon != null) { RearangeMovesWindow.ShowDialog(Window.GetWindow(this), pokemon); } }
public static bool?ShowDialog(Window owner, IPokemon pokemon) { RearangeMovesWindow window = new RearangeMovesWindow(pokemon); window.Owner = owner; return(window.ShowDialog()); }
public static bool? ShowDialog(Window owner, IPokemon pokemon) { RearangeMovesWindow window = new RearangeMovesWindow(pokemon); window.Owner = owner; return window.ShowDialog(); }