public static bool?ShowGiveItemDialog(Window owner, Item item)
        {
            SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.GiveItem, -2, null, null, 0, item);

            window.Owner = owner;
            return(window.ShowDialog());
        }
        public static bool?ShowSendFromDialog(Window owner, int gameIndex, IPokeContainer container, int containerIndex)
        {
            SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendFrom, gameIndex, null, container, containerIndex, null);

            window.Owner = owner;
            return(window.ShowDialog());
        }
        public static bool?ShowSendMultiDialog(Window owner, int gameIndex)
        {
            SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendMulti, gameIndex, null, null, 0, null);

            window.Owner = owner;
            return(window.ShowDialog());
        }
        public static bool?ShowSendToDialog(Window owner, int gameIndex, IPokemon pokemon)
        {
            SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendTo, gameIndex, pokemon, null, 0, null);

            window.Owner = owner;
            return(window.ShowDialog());
        }
        private void OnContextMenuSendToClicked(object sender, RoutedEventArgs e)
        {
            //PokeManager.PickupPokemon(pokeBox, selectedIndex);
            var result = SendPokemonToWindow.ShowDialog(Window.GetWindow(this), pokeContainer[selectedIndex], pokeContainer, selectedIndex, -2);

            if (!result.HasValue && !result.Value)
            {
                PokeManager.DropPokemon();
            }
            RefreshUI();
        }
        public static IPokemon ShowSelectDialog(Window owner, bool noEggs)
        {
            SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SelectPokemon, -2, null, null, 0, null, noEggs);

            window.Owner = owner;
            var result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                return(window.pokemon);
            }
            return(null);
        }
 public static bool? ShowSendToDialog(Window owner, int gameIndex, IPokemon pokemon)
 {
     SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendTo, gameIndex, pokemon, null, 0, null);
     window.Owner = owner;
     return window.ShowDialog();
 }
 public static bool? ShowSendMultiDialog(Window owner, int gameIndex)
 {
     SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendMulti, gameIndex, null, null, 0, null);
     window.Owner = owner;
     return window.ShowDialog();
 }
 public static bool? ShowSendFromDialog(Window owner, int gameIndex, IPokeContainer container, int containerIndex)
 {
     SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SendFrom, gameIndex, null, container, containerIndex, null);
     window.Owner = owner;
     return window.ShowDialog();
 }
 public static IPokemon ShowSelectDialog(Window owner, bool noEggs)
 {
     SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.SelectPokemon, -2, null, null, 0, null, noEggs);
     window.Owner = owner;
     var result = window.ShowDialog();
     if (result.HasValue && result.Value)
         return window.pokemon;
     return null;
 }
 public static bool? ShowGiveItemDialog(Window owner, Item item)
 {
     SendPokemonToWindow window = new SendPokemonToWindow(SendPokemonModes.GiveItem, -2, null, null, 0, item);
     window.Owner = owner;
     return window.ShowDialog();
 }