private async void OnGoogleAuthCompleted(object sender, AuthenticatorCompletedEventArgs e)
        {
            this.DismissViewController(true, null);

            var googleService = new GoogleService();
            var email         = await googleService.GetEmailAsync(e.Account.Properties["token_type"], e.Account.Properties["access_token"]);

            GoogleButton.SetTitle(email, UIControlState.Normal);
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (FacebookButton != null)
            {
                FacebookButton.Dispose();
                FacebookButton = null;
            }

            if (GithubButton != null)
            {
                GithubButton.Dispose();
                GithubButton = null;
            }

            if (GoogleButton != null)
            {
                GoogleButton.Dispose();
                GoogleButton = null;
            }

            if (LinkedinButton != null)
            {
                LinkedinButton.Dispose();
                LinkedinButton = null;
            }

            if (PinterestButton != null)
            {
                PinterestButton.Dispose();
                PinterestButton = null;
            }

            if (TwitterButton != null)
            {
                TwitterButton.Dispose();
                TwitterButton = null;
            }

            if (WatsappButton != null)
            {
                WatsappButton.Dispose();
                WatsappButton = null;
            }

            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }

            if (Label != null)
            {
                Label.Dispose();
                Label = null;
            }
        }
Example #3
0
    public void LoginAccountGoogleSitePage()
    {
        _driver.Navigate().GoToUrl(_url);
        var wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(5));

        wait.Until(d => GoogleLoginInput.Displayed);
        GoogleInput.SendKeys("*****@*****.**");
        GoogleButton.Click();
        GooglePassInput.SendKeys("password123");
        GooglePassButton.Click();
    }
Example #4
0
 /// <summary>
 /// Multithreading Login
 /// </summary>
 private void GoogleButton_Click()
 {
     GoogleButton.Invoke(new Action(() => GoogleButton.BackColor = Color.Transparent));
     if (userChanger.GoogleLogin())
     {
         GoogleButton.Invoke(new Action(() => GoogleButton.BackColor   = Color.LightGreen));
         CalendarsBox.Invoke(new Action(() => CalendarsBox.Enabled     = true));
         NewCalendarBox.Invoke(new Action(() => NewCalendarBox.Enabled = true));
     }
     else
     {
         GoogleButton.Invoke(new Action(() => GoogleButton.BackColor = Color.OrangeRed));
     }
 }
Example #5
0
        void ReleaseDesignerOutlets()
        {
            if (EmailTxt != null)
            {
                EmailTxt.Dispose();
                EmailTxt = null;
            }

            if (FacebookButton != null)
            {
                FacebookButton.Dispose();
                FacebookButton = null;
            }

            if (GirisButton != null)
            {
                GirisButton.Dispose();
                GirisButton = null;
            }

            if (GoogleButton != null)
            {
                GoogleButton.Dispose();
                GoogleButton = null;
            }

            if (SifrenimiUnuttunButton != null)
            {
                SifrenimiUnuttunButton.Dispose();
                SifrenimiUnuttunButton = null;
            }

            if (SifreTxt != null)
            {
                SifreTxt.Dispose();
                SifreTxt = null;
            }

            if (Sozlesmelabel != null)
            {
                Sozlesmelabel.Dispose();
                Sozlesmelabel = null;
            }

            if (UyeOlButton != null)
            {
                UyeOlButton.Dispose();
                UyeOlButton = null;
            }
        }
        private void SetGoogleButtonEnabled(bool enabled)
        {
            MethodInvoker mi = new MethodInvoker(() =>
            {
                GoogleButton.Enabled = enabled;
            });

            if (GoogleButton.InvokeRequired)
            {
                GoogleButton.Invoke(mi);
            }
            else
            {
                mi.Invoke();
            }
        }
Example #7
0
        void ReleaseDesignerOutlets()
        {
            if (FacebookButton != null)
            {
                FacebookButton.Dispose();
                FacebookButton = null;
            }

            if (GoogleButton != null)
            {
                GoogleButton.Dispose();
                GoogleButton = null;
            }

            if (TwitterButton != null)
            {
                TwitterButton.Dispose();
                TwitterButton = null;
            }
        }
Example #8
0
        void ReleaseDesignerOutlets()
        {
            if (EnterYourEmail != null)
            {
                EnterYourEmail.Dispose();
                EnterYourEmail = null;
            }

            if (EnterYourPasswordForLogin != null)
            {
                EnterYourPasswordForLogin.Dispose();
                EnterYourPasswordForLogin = null;
            }

            if (FacebookButton != null)
            {
                FacebookButton.Dispose();
                FacebookButton = null;
            }

            if (GoogleButton != null)
            {
                GoogleButton.Dispose();
                GoogleButton = null;
            }

            if (LoginButton != null)
            {
                LoginButton.Dispose();
                LoginButton = null;
            }

            if (RegistrationButton != null)
            {
                RegistrationButton.Dispose();
                RegistrationButton = null;
            }
        }