Disable menu items in non-writable containers

- Issue MatterHackers/MCCentral#2265
Edit button doesn't appear to work in Root
This commit is contained in:
John Lewin 2017-11-16 13:50:26 -08:00
parent 9cd240579b
commit cdd18ff1b8
2 changed files with 75 additions and 64 deletions

View file

@ -42,10 +42,8 @@ namespace MatterHackers.MatterControl.PrintQueue
public Action<IEnumerable<ILibraryItem>, ListView> Action { get; set; }
public bool AllowMultiple { get; set; } = false;
public bool AllowProtected { get; set; } = false;
public bool AllowContainers { get; set; } = false;
public bool AlwaysEnabled { get; set; } = false;
public Func<IEnumerable<ListViewItem>, ListView, bool> IsEnabled { get; set; }
internal PopupMenu.MenuItem MenuItem { get; set; }
}