protected override void CloseEvent(QCloseEvent evnt) { if (Closed != null) Closed(this, EventArgs.Empty); m_Handler.NewContent -= HandleNewContent; m_Handler.Dispose(); m_Handler = null; evnt.Accept(); }
protected override void CloseEvent(QCloseEvent evnt) { while (m_Tabs.Count > 0) HandleCloseTab(null); var geometry = QByteArrayConverter.ToArray(base.SaveGeometry()); var settingsService = ServiceManager.Get<SettingsService>(); settingsService.Set("ChatsWindowGeometry", geometry); this.Hide(); evnt.Accept(); }
protected override void CloseEvent(QCloseEvent evnt) { while (m_Tabs.Count > 0) HandleCloseTab(null); this.Hide(); evnt.Accept(); }