Example #1
0
        public static bool?ShowDialog(Window owner, IPokemon pokemon)
        {
            ChangeMarkingsWindow window = new ChangeMarkingsWindow(pokemon);

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