コード例 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="CommunicationLogic"/> class.
		/// </summary>
		public CommunicationLogic()
		{
			windowsMap = new Dictionary<IntPtr, HashSet<ContactHandler>>();
			sendImagesCount = new Dictionary<Service.ImageType, int>();
			foreach (Service.ImageType imageType in Enum.GetValues(typeof(Service.ImageType)))
				sendImagesCount[imageType] = 0;

			serviceCommunicator = new ServiceCommunicator(this);
		}
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CommunicationLogic"/> class.
        /// </summary>
        public CommunicationLogic()
        {
            windowsMap      = new Dictionary <IntPtr, HashSet <ContactHandler> >();
            sendImagesCount = new Dictionary <Service.ImageType, int>();
            foreach (Service.ImageType imageType in Enum.GetValues(typeof(Service.ImageType)))
            {
                sendImagesCount[imageType] = 0;
            }

            serviceCommunicator = new ServiceCommunicator(this);
        }