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(); }
private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e) { PokeManager.DropSelection(); PokeManager.DropPokemon(); }