SidebarLibrary.Menus.MenuCommand.InternalConstruct C# (CSharp) Метод

InternalConstruct() защищенный Метод

protected InternalConstruct ( string text, ImageList imageList, int imageIndex, Shortcut shortcut, EventHandler clickHandler, Bitmap bitmap, object realOwner ) : void
text string
imageList System.Windows.Forms.ImageList
imageIndex int
shortcut Shortcut
clickHandler EventHandler
bitmap System.Drawing.Bitmap
realOwner object
Результат void
		protected void InternalConstruct(string text, ImageList imageList, int imageIndex,
										 Shortcut shortcut, EventHandler clickHandler, Bitmap bitmap, object realOwner)
		{
			// Save parameters
			this.text = text;
			this.imageList = imageList;
			this.imageIndex = imageIndex;
			this.shortcut = shortcut;
			image = bitmap;
			this.realOwner = realOwner;
			this.comboBox = null;

			if (clickHandler != null)
				Click += clickHandler;

			// Define defaults for others
			enabled = true;
			_checked = false;
			radioCheck = false;
			_break = false;
			userData = null;
			visible = true;
			infrequent = false;

			// Create the collection of embedded menu commands
			menuItems = new MenuCommandCollection();
		}