protected override void Dispose(bool disposing) { base.Dispose(disposing); _client.MessageReceived -= OnMessage; _client.Dispose(); _reflStates.OnReset -= Reset; _reflStates.OnAppsReceived -= _appTreeRenderer.Reset; _reflStates.OnPlansReceived -= _planTreeRenderer.Reset; _reflStates.OnScriptsReceived -= _scriptTreeRenderer.Reset; }
void myDispose() { tmrTick.Enabled = false; if (_client is not null) { _client.MessageReceived -= OnMessage; _client.Dispose(); _client = null; } }