public void RefreshOnAddedContent(ContentType type, string name)
 {
     if (type == ContentType.Material && !MaterialList.Contains(name))
     {
         MaterialList.Add(name);
     }
     if ((type == ContentType.Image || type == ContentType.ImageAnimation ||
          type == ContentType.SpriteSheetAnimation) && !ImageList.Contains(name))
     {
         ImageList.Add(name);
     }
 }