public static void ReloadTexture() { foreach (var kvp in GraphicsList) { foreach (var i in kvp.Value) { i.Dispose(); } } GraphicsList.Clear(); foreach (var p in loadingList) { var i = p.Value; LoadTextures(i.Texture, i.Size.Width, i.Size.Height); } }
public override void Redo(GraphicsList list) { // Clear list - make DeleteAll again list.Clear(); }