public void ShowAuthForm() { if (this.authForm == null) { this.authForm = new AuthForm(); } authForm.Show(); }
private void ShowAuthForm() { if (_authFormOpened) { AuthForm.Activate(); AuthForm.Focus(); return; } AuthForm = new AuthForm(ApiEndpoint); _authFormOpened = true; AuthForm.Show(); _authFormOpened = false; }