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); }
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); }