Ejemplo n.º 1
0
        public override void Run()
        {
            BookmarkPadBase pad = (BookmarkPadBase)this.Owner;

            foreach (SDBookmark bm in pad.Items.OfType <SDBookmark>().ToList())
            {
                SD.BookmarkManager.RemoveMark(bm);
            }
        }
        public override void Run()
        {
            BookmarkPadBase pad = (BookmarkPadBase)this.Owner;

            if (pad.SelectedItem != null)
            {
                SD.BookmarkManager.RemoveMark(pad.SelectedItem);
            }
        }
Ejemplo n.º 3
0
        public override void Run()
        {
            BookmarkPadBase pad        = (BookmarkPadBase)Owner;
            bool            anyEnabled = pad.Items.OfType <IHaveStateEnabled>().Any(bp => bp.IsEnabled);

            foreach (var bp in pad.Items.OfType <IHaveStateEnabled>())
            {
                bp.IsEnabled = !anyEnabled;
            }
        }
Ejemplo n.º 4
0
        public override void Run()
        {
            BookmarkPadBase pad = (BookmarkPadBase)this.Owner;

            if (pad.ListView.Items.Count > 0)
            {
                pad.ListView.SelectedIndex = (pad.ListView.SelectedIndex - 1 + pad.ListView.Items.Count) % pad.ListView.Items.Count;
                SD.FileService.JumpToFilePosition(pad.SelectedItem.FileName, pad.SelectedItem.LineNumber, pad.SelectedItem.ColumnNumber);
            }
        }
Ejemplo n.º 5
0
        public override void Run()
        {
            BookmarkPadBase pad           = (BookmarkPadBase)this.Owner;
            var             selectedItems = pad.SelectedItems.ToList();

            if (selectedItems.Any())
            {
                foreach (var selectedItem in selectedItems)
                {
                    SD.BookmarkManager.RemoveMark(selectedItem);
                }
            }
        }
Ejemplo n.º 6
0
		public override bool ShowInPad(BookmarkPadBase pad)
		{
			return false;
		}
Ejemplo n.º 7
0
 /// <summary>
 /// Gets whether the bookmark should be displayed in the given pad.
 /// </summary>
 public virtual bool ShowInPad(BookmarkPadBase pad)
 {
     return true;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets whether the bookmark should be displayed in the given pad.
 /// </summary>
 public virtual bool ShowInPad(BookmarkPadBase pad)
 {
     return(true);
 }