public void Install(IndexedResource i, int index)
 {
     i.Id = index;
     Resources.Add(index, i);
 }
 public void Install(IndexedResource i)
 {
     i.Id = inds++;
     Resources.Add(i.Id, i);
 }