public ExcludeActionNode(ExcludeAction excludeAction)
 {
     Text             = excludeAction.ObjectName;
     ExcludeAction    = excludeAction;
     ImageKey         = ObjectTypeNode.ObjectTypeIcons[excludeAction.ObjectType];
     SelectedImageKey = ImageKey;
 }
Esempio n. 2
0
        public void Exclude(IEnumerable <ContentItem> items)
        {
            var action = new ExcludeAction(this, items);

            action.Do();
            _actionStack.Add(action);
        }
Esempio n. 3
0
        public void Exclude(IEnumerable <ContentItem> items, IEnumerable <string> folders)
        {
            var action = new ExcludeAction(this, items, folders);

            if (action.Do())
            {
                _actionStack.Add(action);
            }
        }
Esempio n. 4
0
        public void Exclude(bool delete)
        {
            if (delete && !View.ShowDeleteDialog(SelectedItems))
            {
                return;
            }

            var action = new ExcludeAction(this, SelectedItems, delete);

            if (action.Do())
            {
                _actionStack.Add(action);
            }

            UpdateMenu();
        }
        public void Exclude(bool delete)
        {
            // We don't want to show a delete confirmation for any items outside the project folder
            var filteredItems = new List <IProjectItem>(SelectedItems.Where(i => !i.OriginalPath.Contains("..")));

            if (filteredItems.Count > 0 && delete && !View.ShowDeleteDialog(filteredItems))
            {
                return;
            }

            // Still need to pass all items to the Exclude action so it can remove them from the view.
            // Filtering is done internally so it only deletes files in the project folder
            var action = new ExcludeAction(this, SelectedItems, delete);

            if (action.Do())
            {
                _actionStack.Add(action);
            }

            UpdateMenu();
        }
Esempio n. 6
0
 public void Apply(IDictionary <string, object> src, ref List <ExpandoObject> dest)
 {
     ExcludeAction.Execute(src, ref dest);
 }
 public void Exclude(IEnumerable<ContentItem> items)
 {
     var action = new ExcludeAction(this, items);
     action.Do();
     _actionStack.Add(action);
 }
Esempio n. 8
0
 public void Exclude(IEnumerable<ContentItem> items, IEnumerable<string> folders)
 {
     var action = new ExcludeAction(this, items, folders);
     if(action.Do())
         _actionStack.Add(action);
 }