Пример #1
0
        public void MoveBox(int oldIndex, int newIndex)
        {
            ManagerPokeBox box = boxes[oldIndex];

            boxes.RemoveAt(oldIndex);
            boxes.Insert(newIndex, box);
            UpdateBoxNumbers();
        }
Пример #2
0
        public void DuplicateBox(int index)
        {
            ManagerPokeBox boxToDuplicate = boxes[index];
            ManagerPokeBox newBox         = new ManagerPokeBox(this, (byte)boxes.Count, "BOX" + (boxes.Count + 1).ToString(), (PokeBoxWallpapers)boxToDuplicate.Wallpaper);

            newBox.UsingCustomWallpaper = boxToDuplicate.UsingCustomWallpaper;
            newBox.WallpaperName        = boxToDuplicate.WallpaperName;
            if (boxToDuplicate.Name != "BOX" + (boxToDuplicate.BoxNumber + 1).ToString())
            {
                newBox.Name = boxToDuplicate.Name;
            }
            InsertBox(index + 1, newBox);
        }
Пример #3
0
 public void InsertBox(int index, ManagerPokeBox box)
 {
     GameSave.IsChanged = true;
     boxes.Insert(index, box);
     for (int i = 0; i < box.NumSlots; i++)
     {
         if (box[i] != null)
         {
             box[i].GameType = GameTypes.Any;
         }
     }
     UpdateBoxNumbers();
 }
Пример #4
0
 public void AddBox(ManagerPokeBox box)
 {
     InsertBox(boxes.Count, box);
 }