Пример #1
0
        public static bool TryConnect(string username, string password)
        {
            GCalClient test;

            try {
                test = new GCalClient(username, password);
                test.UpdateCalendars();
                Connect(username, password);
            } catch (Exception) {
                Log.Error(ConnectionErrorMessage);
                return(false);
            }

            return(true);
        }
Пример #2
0
 public static void UpdateCalendars()
 {
     client.UpdateCalendars();
 }