class DesignerVerbSite : ISite, IMenuCommandService
{
private readonly DesignerVerb[] verbs;
public DesignerVerbSite(params DesignerVerb[] verbs)
{
this.verbs = verbs ?? throw new ArgumentNullException(nameof(verbs));
}
#region ISite
/// <inheritdoc/>
IComponent ISite.Component => throw new NotImplementedException();
/// <inheritdoc/>
IContainer ISite.Container => null;
/// <inheritdoc/>
bool ISite.DesignMode => true;
/// <inheritdoc/>
string ISite.Name { get; set; }
#endregion
#region IMenuCommandService
/// <inheritdoc/>
DesignerVerbCollection IMenuCommandService.Verbs => new DesignerVerbCollection(this.verbs);
/// <inheritdoc/>
void IMenuCommandService.AddCommand(MenuCommand command) => throw new NotImplementedException();
/// <inheritdoc/>
void IMenuCommandService.AddVerb(DesignerVerb verb) => throw new NotImplementedException();
/// <inheritdoc/>
MenuCommand IMenuCommandService.FindCommand(CommandID commandID) => throw new NotImplementedException();
/// <inheritdoc/>
object IServiceProvider.GetService(Type serviceType) => (serviceType == typeof(IMenuCommandService)) ? this : null;
/// <inheritdoc/>
bool IMenuCommandService.GlobalInvoke(CommandID commandID) => throw new NotImplementedException();
/// <inheritdoc/>
void IMenuCommandService.RemoveCommand(MenuCommand command) => throw new NotImplementedException();
/// <inheritdoc/>
void IMenuCommandService.RemoveVerb(DesignerVerb verb) => throw new NotImplementedException();
/// <inheritdoc/>
void IMenuCommandService.ShowContextMenu(CommandID menuID, int x, int y) => throw new NotImplementedException();
#endregion
}