Example #1
0
        public void Sync()
        {
            _syncedCount  = 0;
            _deletedCount = 0;

            Load();

            if (_matches == null)
            {
                return;
            }

            if (_syncProfile.Length == 0)
            {
                Logger.Log("Must set a sync profile. This should be different on each user/computer you sync on.", EventType.Error);
                return;
            }

            _totalCount = _matches.Count;

            ContactsMatcher.SyncGroups(this);

            ContactsMatcher.SyncContacts(this);

            SaveContacts(_matches);
        }