Beispiel #1
0
        private void AddGoogleService()
        {
            GoogleSignIn gSignIn = new GoogleSignIn();

            gSignIn.Owner = Window.GetWindow(this);

            if (gSignIn.ShowDialog() == true)
            {
                AccountDisplay display = new AccountDisplay(new BitmapImage(new Uri("pack://application:,,,/Daytimer.Images;component/Images/google.png", UriKind.Absolute)), "Google", gSignIn.Email);
                servicesPanel.Children.Add(display);

                if (SyncDatabase.GetSyncObject(gSignIn.Email) == null)
                {
                    SyncDatabase.Add(new SyncObject(gSignIn.Email, DateTime.Now, SyncType.EntireAccount));
                }
            }
        }