Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }