/// <summary> /// Authorize automatically using an authorization form /// </summary> /// <param name="owner">The owner form</param> /// <returns>The access token</returns> public string Authorize(IWin32Window formOwner) { OAuth2Form newForm = new OAuth2Form(this); newForm.ShowDialog(formOwner); return this.AccessToken; }
/// <summary> /// Authorize automatically using an authorization form /// </summary> /// <returns>The access token</returns> public string Authorize() { OAuth2Form newForm = new OAuth2Form(this); newForm.ShowDialog(); return this.AccessToken; }