public CollectionSettingsMenu(IDialogManager dialogManager, IMediator mediator, UploadCollection uploadCollection) { _dialogManager = dialogManager; _mediator = mediator; StateChangeMenu = new CollectionStateChangeMenu(uploadCollection); RegisterSubMenu(StateChangeMenu); Header = "Collection settings"; }
public CustomCollectionContextMenu(ModLibraryViewModel library) { Library = library; _uploadCollection = library.UploadCollection; this.WhenAnyValue(x => x.CurrentItem.Model.IsInstalled, x => x.CurrentItem.Model.Items.Count, (installed, count) => installed && count > 0) .Subscribe(isInstalled => Items.Where( x => x.Action == UninstallModsFromDisk || x.AsyncAction == Diagnose || x.AsyncAction == LaunchCollection) .ForEach(x => x.IsEnabled = isInstalled)); }
public UploadCollectionPopupMenu(UploadCollection uploadCollection) { _uploadCollection = uploadCollection; Header = "Upload Collection"; }
public CollectionStateChangeMenu(UploadCollection uploadCollection) { _uploadCollection = uploadCollection; Header = "Change state"; }