Ejemplo n.º 1
0
 /// <summary>
 /// Generates a <see cref="UseCaseButton"/> instance.
 /// </summary>
 /// <param name="mode">
 /// The corresponding <see cref="Mode"/> this button should holds.
 /// </param>
 /// <param name="toolBar">Parent tool bar control.</param>
 /// <seealso cref="UMLButton(Mode, UMLToolBar)"/>
 internal UseCaseButton(Mode mode, UMLToolBar toolBar) : base(mode, toolBar)
 {
     Image       = Properties.Resources.UseCaseIcon;
     Name        = "UseCaseButton";
     Text        = "Use case tool";
     ToolTipText = "Use case tool";
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Generates a <see cref="AssociationLineButton"/> instance.
 /// </summary>
 /// <param name="mode">
 /// The corresponding <see cref="Mode"/> this button should holds.
 /// </param>
 /// <param name="toolBar">Parent tool bar control.</param>
 /// <seealso cref="UMLButton(Mode, UMLToolBar)"/>
 internal AssociationLineButton(Mode mode, UMLToolBar toolBar) : base(mode, toolBar)
 {
     Image       = Properties.Resources.AssociationLineIcon;
     Name        = "AssociationLineButton";
     Text        = "Association line tool";
     ToolTipText = "Association line tool";
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Generates a <see cref="ClassButton"/> instance.
 /// </summary>
 /// <param name="mode">
 /// The corresponding <see cref="Mode"/> this button should holds.
 /// </param>
 /// <param name="toolBar">Parent tool bar control.</param>
 /// <seealso cref="UMLButton(Mode, UMLToolBar)"/>
 internal ClassButton(Mode mode, UMLToolBar toolBar) : base(mode, toolBar)
 {
     Image       = Properties.Resources.ClassIcon;
     Name        = "ClassButton";
     Text        = "Class tool";
     ToolTipText = "Class tool";
 }
 /// <summary>
 /// Generates a <see cref="SelectionButton"/> instance.
 /// </summary>
 /// <param name="mode">
 /// The corresponding <see cref="Mode"/> this button should holds.
 /// </param>
 /// <param name="toolBar">Parent tool bar control.</param>
 /// <seealso cref="UMLButton(Mode, UMLToolBar)"/>
 internal SelectionButton(Mode mode, UMLToolBar toolBar) : base(mode, toolBar)
 {
     Image              = Properties.Resources.SelectIcon;
     Name               = "SelectionButton";
     Text               = "Selection tool";
     ToolTipText        = "Selection tool";
     CheckStateChanged += OnCheckStateChanged;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Generates an <see cref="UMLButton"/> instance.
 /// </summary>
 /// <param name="mode">
 /// The corresponding <see cref="Modes.Mode"/> this button should holds.
 /// </param>
 /// <param name="toolBar">Parent tool bar control.</param>
 protected UMLButton(Mode mode, UMLToolBar toolBar)
 {
     DisplayStyle  = ToolStripItemDisplayStyle.Image;
     Size          = new System.Drawing.Size(20, 20);
     Click        += OnClickEvent;
     Mode          = mode;
     _parenToolBar = toolBar;
 }