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