public void reload() { this.lockedMemory.Clear(); this.memories.Clear(); this.baseAddress.Clear(); this.pluginMemory.Clear(); this.plugins.Clear(); for (int i = 0; i < this.shortcut.Count <string>(); i++) { SysApi.UnregisterHotKey(this.formIntPtr, i + 0x3e8); } this.PluginInit(this.profilePath, this.formIntPtr); }
protected virtual void Dispose(bool disposing) { if (disposing && this.isInit) { this.lockedMemory.Clear(); this.memories.Clear(); this.baseAddress.Clear(); this.pluginMemory.Clear(); this.plugins.Clear(); this.lockedMemory = null; this.memories = null; this.baseAddress = null; this.pluginMemory = null; for (int i = 0; i < this.shortcut.Count <string>(); i++) { SysApi.UnregisterHotKey(this.formIntPtr, i + 0x3e8); } this.isInit = false; } else { GC.SuppressFinalize(this); } }