Beispiel #1
0
 /// <summary>
 /// Initializes the <see cref="ImageMenuItem"/>.
 /// </summary>
 /// <remarks>Merely a common method used for constructors.</remarks>
 private void Initialize()
 {
     InitializeComponent();
     this.menuItems         = new ImageMenuItemCollection(this);
     this.imageIndex        = -1;
     this.imagecheckedIndex = -1;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="ImageMainMenu"/> initialized
 /// to its default state.
 /// </summary>
 public ImageMainMenu()
 {
     InitializeComponent();
     this.menuItems = new ImageMenuItemCollection(this);
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new <see cref="ImageContextMenu"/> with the
 /// <paramref name="components"/> provided.
 /// </summary>
 /// <param name="components">The <see cref="IContainer"/>
 /// which contains the <see cref="ImageContextMenu"/>.</param>
 public ImageContextMenu(IContainer components)
 {
     InitializeComponent();
     this.menuItems = new ImageMenuItemCollection(this);
 }