Exemplo n.º 1
0
        public void Dispose()
        {
            _configManager.RemovePropertyChangeListener(OnEvent_ConfigManager_PositionChange);

            var chatLocation = _overlay.Location;

            _configManager.SetProperty("behaviour.frame.chat.position.x", chatLocation.X);
            _configManager.SetProperty("behaviour.frame.chat.position.y", chatLocation.Y);

            var chatSize = _overlay.Size;

            _configManager.SetProperty("behaviour.frame.chat.size.width", chatSize.Width);
            _configManager.SetProperty("behaviour.frame.chat.size.height", chatSize.Height);

            _manager.UISynchronizer.RunSync(() => _overlay.Close());

            _manager.DisposeUIElement(OverlayUIId);
            _moveCallback.Dispose();
            _resizeCallback.Dispose();

            _manager        = null;
            _overlay        = null;
            _configManager  = null;
            _moveCallback   = null;
            _resizeCallback = null;
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (_manager == null)
     {
         return;
     }
     _manager.DisposeUIElement(NotifyIconManagerId);
     _manager = null;
 }