public ExcludeActionNode(ExcludeAction excludeAction) { Text = excludeAction.ObjectName; ExcludeAction = excludeAction; ImageKey = ObjectTypeNode.ObjectTypeIcons[excludeAction.ObjectType]; SelectedImageKey = ImageKey; }
public void Exclude(IEnumerable <ContentItem> items) { var action = new ExcludeAction(this, items); action.Do(); _actionStack.Add(action); }
public void Exclude(IEnumerable <ContentItem> items, IEnumerable <string> folders) { var action = new ExcludeAction(this, items, folders); if (action.Do()) { _actionStack.Add(action); } }
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(); }
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); }
public void Exclude(IEnumerable<ContentItem> items, IEnumerable<string> folders) { var action = new ExcludeAction(this, items, folders); if(action.Do()) _actionStack.Add(action); }