Пример #1
0
        public static bool ResetSyncsIfHasAgent(Service service, string bubbleGroupAddress)
        {
            if (!SupportsSync(service))
            {
                return(false);
            }

            foreach (var group in BubbleGroupManager.FindAll(service))
            {
                if (service.BubbleGroupComparer(group.Address, bubbleGroupAddress))
                {
                    group.NeedsSync = true;
                    BubbleGroupEvents.RaiseSyncReset(group);
                    return(true);
                }
            }

            return(false);
        }