コード例 #1
0
 public SubShellTypeItem(string regPath) : base(regPath)
 {
     BtnMoveDown = new MoveButton(this, false);
     BtnMoveUp   = new MoveButton(this, true);
     this.SetCtrIndex(BtnMoveDown, 1);
     this.SetCtrIndex(BtnMoveUp, 2);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public SubShellItem(CommonMultiItemsList list, string keyName) : base($@"{CommandStorePath}\{keyName}")
 {
     this.Owner             = list;
     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);
     ContextMenuStrip.Items.Remove(TsiDeleteMe);
     ContextMenuStrip.Items.Add(TsiDeleteRef);
     TsiDeleteRef.Click += (sender, e) => DeleteReference();
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }