void loginControl_Closed(object sender, EventArgs e)
		{
			if (WindowStateChanged != null)
				WindowStateChanged.Invoke(WindowTypeOption.Login, WindowStateOption.Closed);

			LoginWindowSsoAuthenticationComplete = null;
			loginControl = null;
		}
		/// <summary>
		/// Opens the window that displays the SSO URL to the user.
		/// </summary>
		protected override void ShowUserLoginWindowInternal()
		{
			if (Api.AuthenticationState == RallyRestApi.AuthenticationResult.PendingSSO)
				PerformLogoutFromRally();

			// If the login control exists, don't open a new one.
			if (loginControl == null)
			{
				loginControl = new LoginWindow();
				loginControl.BuildLayout(this);
				loginControl.Closed += loginControl_Closed;
				LoginWindowSsoAuthenticationComplete += loginControl.SsoAuthenticationComplete;
			}

			loginControl.SetLogo(logoForUi, iconForUi);
			loginControl.UpdateLoginState();

			if (WindowStateChanged != null)
				WindowStateChanged.Invoke(WindowTypeOption.Login, WindowStateOption.Open);

			loginControl.Show();
			loginControl.Focus();
		}