Esempio n. 1
0
        public void Close(IWindowController window)
        {
            if (window == null)
            {
                return;
            }

            WindowPreClose?.Invoke(window);

            _windows.Remove(window);
            if (_modalWindow == window)
            {
                _modalWindow = null;
            }

            _factory.Remove(window);

            WindowClose?.Invoke(window);
        }
Esempio n. 2
0
        public void Close(IWindowController window)
        {
            if (window == null)
            {
                return;
            }

            WindowPreClose?.Invoke(window);

            _windows.Remove(window);
            if (_modalWindow == window)
            {
                _modalWindow = null;
            }

            //TODO: stackowerflow
            //window.Close();

            _factory.Remove(window);

            WindowClose?.Invoke(window);
        }