コード例 #1
0
        public bool SendImageType(Service.ImageType imageType, bool value)
        {
            if (value)
            {
                sendImagesCount[imageType]++;
            }
            else
            {
                sendImagesCount[imageType]--;
            }

            bool willBeSend = serviceCommunicator.SendImageType(imageType, sendImagesCount[imageType] > 0);

            if (!willBeSend)
            {
                sendImagesCount[imageType] = 0;
            }
            return(willBeSend);
        }