Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
        protected override void CloseEvent(QCloseEvent evnt)
        {
            while (m_Tabs.Count > 0)
                HandleCloseTab(null);

            this.Hide();
            evnt.Accept();
        }