public SubSeparatorItem()
 {
     this.Text     = AppString.Other.Separator;
     this.HasImage = false;
     BtnDelete     = new DeleteButton(this);
     BtnMoveDown   = new MoveButton(this, false);
     BtnMoveUp     = new MoveButton(this, true);
     MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete);
 }
 public InvalidItem(CommonMultiItemsList list, string keyName)
 {
     this.Owner             = list;
     this.Text              = $"{AppString.Item.InvalidItem} {keyName}";
     this.Image             = AppImage.NotFound.ToTransparent();
     BtnDelete              = new DeleteButton(this);
     BtnMoveDown            = new MoveButton(this, false);
     BtnMoveUp              = new MoveButton(this, true);
     BtnMoveUp.MouseDown   += (sender, e) => MoveItem(this, Owner, true);
     BtnMoveDown.MouseDown += (sender, e) => MoveItem(this, Owner, false);
     MyToolTip.SetToolTip(BtnDelete, AppString.Tip.InvalidItem);
 }
 public SeparatorItem(CommonMultiItemsList list)
 {
     this.Owner             = list;
     this.Text              = AppString.Item.Separator;
     this.Image             = AppImage.Separator;
     BtnDelete              = new DeleteButton(this);
     BtnMoveDown            = new MoveButton(this, false);
     BtnMoveUp              = new MoveButton(this, true);
     BtnMoveUp.MouseDown   += (sender, e) => MoveItem(this, Owner, true);
     BtnMoveDown.MouseDown += (sender, e) => MoveItem(this, Owner, false);
     MyToolTip.SetToolTip(BtnDelete, AppString.Tip.Separator);
 }
        private void InitializeComponents()
        {
            BtnDelete         = new DeleteButton(this);
            ContextMenuStrip  = new ContextMenuStrip();
            TsiSearch         = new WebSearchMenuItem(this);
            TsiFileProperties = new FilePropertiesMenuItem(this);
            TsiFileLocation   = new FileLocationMenuItem(this);

            ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiSearch,
                                                                  new ToolStripSeparator(), TsiFileProperties, TsiFileLocation });

            MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete);
        }
Exemplo n.º 5
0
        private void InitializeComponents()
        {
            BtnDelete         = new DeleteButton(this);
            ContextMenuStrip  = new ContextMenuStrip();
            TsiSearch         = new WebSearchMenuItem(this);
            TsiFileProperties = new FilePropertiesMenuItem(this);
            TsiFileLocation   = new FileLocationMenuItem(this);
            TsiRegLocation    = new RegLocationMenuItem(this);
            TsiHandleGuid     = new HandleGuidMenuItem(this);

            ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid,
                                                                  new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDelete });
            TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch,
                                                                    new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation });

            MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete);
            TsiDelete.Click += (sender, e) =>
            {
                if (MessageBoxEx.Show(AppString.Message.ConfirmDelete, MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    DeleteMe();
                }
            };
        }