public PokemonDragDropData(PokemonViewModel data, DragDropActions allowedActions, IFolderViewModel source, int pmIndex) { this.Pokemon = data; this.AllowedActions = allowedActions; this.SourceFolder = source; this.PokemonIndexInFolder = pmIndex; }
public void RecyclePokemon(PokemonViewModel pm) { Recycler.RecyclePokemon(pm); }
public void EditPokemon(PokemonViewModel pm) { EditingPokemon.PokemonViewModel = pm; }
public void RecyclePokemon(PokemonViewModel pm) { if (!Pokemons.Contains(pm)) { InsertPokemon(Pokemons.Count, pm); } else//remove from recycler { pm.EndEditing(); } }
public void RemovePokemon(PokemonViewModel pm) { Pokemons.Remove(pm); }
public void InsertPokemon(int index, PokemonViewModel pm) { Pokemons.Insert(index, pm); pm.Folder = this; }