public void MoveUp(ResourcePack pack) { int index = EnabledPacks.IndexOf(pack); if (index != 0) { EnabledPacks.Remove(pack); EnabledPacks.Insert(index - 1, pack); } }
public void MoveDown(ResourcePack pack) { int index = EnabledPacks.IndexOf(pack); if (index != EnabledPacks.Count - 1) { EnabledPacks.Remove(pack); EnabledPacks.Insert(index + 1, pack); } }
public void Enable(ResourcePack pack) { DisabledPacks.Remove(pack); pack.IsEnabled = true; EnabledPacks.Insert(0, pack); }