void DoIt() { try { var tokenUrl = client.BuildAuthorizeUrl(); //Use your own callback Url here if (CloudManagerUI.AuthWindowDB.IsActiveProperty != null) { string startUrl = tokenUrl.ToString(); string endUrl = "authorize_submit"; this.authForm = new AuthWindowDB( startUrl, endUrl, OnAuthCompleted); this.authForm.Closed += authForm_Closed; this.authForm.ShowDialog(); } } catch (Exception e) { string temp = e.Message; } }