Пример #1
0
 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;
 }
Пример #2
0
 void myDispose()
 {
     tmrTick.Enabled = false;
     if (_client is not null)
     {
         _client.MessageReceived -= OnMessage;
         _client.Dispose();
         _client = null;
     }
 }