示例#1
0
        /// <summary>
        /// Initializes an instance of this class
        /// </summary>
        /// <param name="icon">The icon to use for this button</param>
        /// <param name="tooltip">The tooltip string to use for this button.</param>
        public ThumbnailToolBarButton(Icon icon, string tooltip)
        {
            // Start internal update (so we don't accidently update the taskbar
            // via the native API)
            internalUpdate = true;

            // Set our id
            Id = nextId;

            // increment the ID
            if (nextId == Int32.MaxValue)
            {
                nextId = 101;                 // our starting point
            }
            else
            {
                nextId++;
            }

            // Set user settings
            Icon    = icon;
            Tooltip = tooltip;

            // Defaults
            Enabled = true;

            // Create a native
            win32ThumbButton = new ThumbButton();

            // End our internal update
            internalUpdate = false;
        }
示例#2
0
		/// <summary>
		/// Initializes an instance of this class
		/// </summary>
		/// <param name="icon">The icon to use for this button</param>
		/// <param name="tooltip">The tooltip string to use for this button.</param>
		public ThumbnailToolBarButton(Icon icon, string tooltip) {
			// Start internal update (so we don't accidently update the taskbar
			// via the native API)
			internalUpdate = true;

			// Set our id
			Id = nextId;

			// increment the ID
			if (nextId == Int32.MaxValue)
				nextId = 101; // our starting point
			else
				nextId++;

			// Set user settings
			Icon = icon;
			Tooltip = tooltip;

			// Defaults
			Enabled = true;

			// Create a native 
			win32ThumbButton = new ThumbButton();

			// End our internal update
			internalUpdate = false;
		}