private void OpenAuthorizationWindow() { var auth = new AuthWindow(); auth.Authorized += App.Locator.MainWindow.OnAuthorized; auth.Closing += OnClosing; auth.ShowDialog(); }