/// <summary> /// Creates a new store management node. /// </summary> /// <param name="backingNode">The underlying <see cref="CacheNode"/> containing the cache information.</param> /// <param name="manageForm">The form hosting the management UI.</param> public StoreManageNode([NotNull] CacheNode backingNode, [NotNull] StoreManageForm manageForm) { #region Sanity checks if (backingNode == null) { throw new ArgumentNullException(nameof(backingNode)); } if (manageForm == null) { throw new ArgumentNullException(nameof(manageForm)); } #endregion BackingNode = backingNode; _manageForm = manageForm; }
/// <inheritdoc/> public void ManageStore(IImplementationStore store, IFeedCache feedCache) { #region Sanity checks if (store == null) { throw new ArgumentNullException(nameof(store)); } if (feedCache == null) { throw new ArgumentNullException(nameof(feedCache)); } #endregion ThreadUtils.RunSta(() => { using var form = new StoreManageForm(store, feedCache); form.ShowDialog(); }); }
/// <summary> /// Creates a new store management node. /// </summary> /// <param name="backingNode">The underlying <see cref="CacheNode"/> containing the cache information.</param> /// <param name="manageForm">The form hosting the management UI.</param> public StoreManageNode(CacheNode backingNode, StoreManageForm manageForm) { BackingNode = backingNode ?? throw new ArgumentNullException(nameof(backingNode)); _manageForm = manageForm ?? throw new ArgumentNullException(nameof(manageForm)); }