/// <summary> /// Authorize the token by showing the dialog /// </summary> /// <returns>The request token.</returns> public String authorizeToken() { if (string.IsNullOrEmpty(Token)) { Exception e = new Exception("The request token is not set"); throw e; } //AuthorizeWindow aw = new AuthorizeWindow(this); LoginForm aw = new LoginForm(this); aw.ShowDialog(); Token = aw.Token; Verifier = aw.Verifier; if (!string.IsNullOrEmpty(Verifier)) return Token; else return null; }