Exemple #1
0
        protected override void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            if (isDisposing)
            {
                EventHooks.Instance.SaveEvent -= this.Save;

                _watchManager.Dispose();

                _trafficViewTaskManager.Stop();
                _trafficViewTaskManager.Dispose();

                _trafficMonitorTaskManager.Stop();
                _trafficMonitorTaskManager.Dispose();

                _amoebaInterfaceManager.Stop();

                this.Save();

                this.CloudControlViewModel.Dispose();
                this.ChatControlViewModel.Dispose();
                this.StoreControlViewModel.Dispose();
                this.StorePublishControlViewModel.Dispose();
                this.SearchControlViewModel.Dispose();
                this.DownloadControlViewModel.Dispose();
                this.UploadControlViewModel.Dispose();

                _disposable.Dispose();

                _messageManager.Dispose();

                _amoebaInterfaceManager.Dispose();
            }
        }