private static void CurrentDomain_DomainUnload(object sender, EventArgs e) { HUD.Dispose(); foreach (var camp in Camps) { camp.Value.Sprite.Dispose(); } }
private void Dispose() { foreach (var sprite in SpriteList) { sprite.Sprite.Dispose(); } MainSprite.Dispose(); }
private static void CurrentDomain_DomainUnload(object sender, EventArgs e) { ReadyLine.Dispose(); Text.Dispose(); CdFrame.Dispose(); foreach (var sprite in SummonerTextures) { sprite.Value.Dispose(); } }
private static void Game_OnUpdate(EventArgs args) { if (LeagueSharp.Common.Utils.TickCount - adDisplayed <= 7000) { return; } AdSprite.Dispose(); Game.OnUpdate -= Game_OnUpdate; Game.OnWndProc -= Game_OnWndProc; }
public void Dispose() { if (Sprite != null) { Sprite.Dispose(); } if (Bitmap != null) { Bitmap.Dispose(); } }
private static void CurrentDomainOnDomainUnload(object sender, EventArgs e) { _sprite.Dispose(); }
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { CursorSprite.Dispose(); }