protected CopyCommand(int id, XmlRepository repository, ActiveDocument activeDocument, Func<IWriter> writerProvider, ICommandTextFormatter textFormatter)
 {
     _activeDocument = activeDocument;
     Repository = repository;
     Command = new OleMenuCommand(OnInvoke, null, OnBeforeQueryStatus, new CommandID(Guid.Parse(Symbols.PackageID), id));
     WriterProvider = writerProvider;
     TextFormatter = textFormatter;
 }
 public CopyXmlStructureCommand(int id, XmlRepository repository, ActiveDocument activeDocument, Func <IWriter> writerProvider, ICommandTextFormatter textFormatter)
     : base(id, repository, activeDocument, writerProvider, textFormatter)
 {
 }
 public CopyXmlStructureCommand(int id, XmlRepository repository, ActiveDocument activeDocument, Func<IWriter> writerProvider, ICommandTextFormatter textFormatter)
     : base(id, repository, activeDocument, writerProvider, textFormatter)
 {
 }
Beispiel #4
0
 protected CopyCommand(int id, XmlRepository repository, ActiveDocument activeDocument, Func <IWriter> writerProvider, ICommandTextFormatter textFormatter)
 {
     Repository      = repository ?? throw new ArgumentNullException(nameof(repository));
     _activeDocument = activeDocument ?? throw new ArgumentNullException(nameof(activeDocument));
     Command         = new OleMenuCommand(OnInvoke, null, OnBeforeQueryStatus, new CommandID(Guid.Parse(Symbols.PackageID), id));
     WriterProvider  = writerProvider ?? throw new ArgumentNullException(nameof(writerProvider));
     TextFormatter   = textFormatter ?? throw new ArgumentNullException(nameof(textFormatter));
 }