/// <summary> /// Initializes a new instance of the <see cref="DocumentRemovedEventContext"/> class. /// </summary> /// <param name="rootPath">The root path.</param> /// <param name="deletedTree">The delete tree.</param> /// <param name="isUndoRedo">True if the operation can be undone.</param> /// <param name="clientInfo">The operation data.</param> public DocumentRemovedEventContext(IRootPath rootPath, IReadOnlyDictionary <ITreeNodePath, IPathConnection> deletedTree, bool isUndoRedo, object?clientInfo) { RootPath = rootPath; DeletedTree = deletedTree; IsUndoRedo = isUndoRedo; ClientInfo = clientInfo; }
/// <summary> /// Initializes a new instance of the <see cref="SolutionTreeCommittedEventContext"/> class. /// </summary> /// <param name="info">The commit information.</param> /// <param name="solutionOperation">The solution operation.</param> /// <param name="rootPath">The path to the solution.</param> /// <param name="newRootPath">The new root path.</param> /// <param name="destinationPath">The commit destination path.</param> public SolutionTreeCommittedEventContext(CommitInfo info, SolutionOperation solutionOperation, IRootPath rootPath, IRootPath newRootPath, string destinationPath) { Info = info; SolutionOperation = solutionOperation; RootPath = rootPath; NewRootPath = newRootPath; DestinationPath = destinationPath; }
/// <summary> /// Initializes a new instance of the <see cref="ImportedEventArgs"/> class. /// </summary> /// <param name="routedEvent">The event that occured.</param> /// <param name="package">The solution package.</param> /// <param name="rootPath">The root path.</param> /// <param name="currentFolderPath">The current folder path.</param> /// <param name="itemName">The item name.</param> /// <param name="content">The item content.</param> public ImportedEventArgs(RoutedEvent routedEvent, SolutionPackage package, IRootPath rootPath, IFolderPath currentFolderPath, string itemName, byte[] content) : base(routedEvent) { Package = package; RootPath = rootPath; CurrentFolderPath = currentFolderPath; Name = itemName; Content = content; }
/// <summary> /// Initializes a new instance of the <see cref="ImportedEventArgs"/> class. /// </summary> /// <param name="routedEvent">The event that occured.</param> /// <param name="package">The solution package.</param> /// <param name="rootPath">The root path.</param> /// <param name="currentFolderPath">The current folder path.</param> /// <param name="folderName">The folder name.</param> public ImportedEventArgs(RoutedEvent routedEvent, SolutionPackage package, IRootPath rootPath, IFolderPath currentFolderPath, string folderName) : base(routedEvent) { Package = package; RootPath = rootPath; CurrentFolderPath = currentFolderPath; Name = folderName; Content = Array.Empty <byte>(); }
public ImportedEventArgs(RoutedEvent routedEvent, SolutionPackage package, IRootPath rootPath, IFolderPath currentFolderPath, string folderName) : base(routedEvent) { Assert.ValidateReference(rootPath); Assert.ValidateReference(folderName); this.Package = package; this.RootPath = rootPath; this.CurrentFolderPath = currentFolderPath; this.Name = folderName; this.Content = null; }
public ImportedEventArgs(RoutedEvent routedEvent, SolutionPackage package, IRootPath rootPath, IFolderPath currentFolderPath, string itemName, byte[] content) : base(routedEvent) { Assert.ValidateReference(rootPath); Assert.ValidateReference(currentFolderPath); Assert.ValidateReference(itemName); Assert.ValidateReference(content); this.Package = package; this.RootPath = rootPath; this.CurrentFolderPath = currentFolderPath; this.Name = itemName; this.Content = content; }
public SolutionSelectedCompletionArgs(IRootPath SelectedRootPath) { this.SelectedRootPath = SelectedRootPath; }
public SolutionRoot(IRootPath path, IRootProperties properties, IComparer <ITreeNodePath> nodeComparer) : base(path, properties, nodeComparer) { }
public SolutionCreatedCompletionArgs(IRootPath CreatedRootPath) { this.CreatedRootPath = CreatedRootPath; }
/// <summary> /// Notifies handlers that the operation is completed. /// </summary> /// <param name="selectedRootPath">The path to the selected solution.</param> public virtual void NotifyCompleted(IRootPath selectedRootPath) { ISolutionSelectedCompletionArgs CompletionArgs = new SolutionSelectedCompletionArgs(selectedRootPath); NotifyEventCompleted(CompletionArgs); }
/// <summary> /// Initializes a new instance of the <see cref="SolutionDeletedEventContext"/> class. /// </summary> /// <param name="deletedRootPath">The path to the deleted solution.</param> /// <param name="deletedTree">The tree of deleted nodes.</param> public SolutionDeletedEventContext(IRootPath deletedRootPath, IReadOnlyCollection <ITreeNodePath>?deletedTree) { DeletedRootPath = deletedRootPath; DeletedTree = deletedTree; }
/// <summary> /// Initializes a new instance of the <see cref="SolutionExportedEventContext"/> class. /// </summary> /// <param name="exportedRootPath">The path of the exported solution.</param> /// <param name="destinationPath">The destination path.</param> public SolutionExportedEventContext(IRootPath exportedRootPath, string destinationPath) { ExportedRootPath = exportedRootPath; DestinationPath = destinationPath; }
/// <summary> /// Notifies handlers that the operation is completed. /// </summary> /// <param name="dispatcher">The window dispatcher.</param> /// <param name="createdRootPath">The path to the created solution.</param> public virtual void NotifyCompletedAsync(Dispatcher dispatcher, IRootPath createdRootPath) { ISolutionCreatedCompletionArgs CompletionArgs = new SolutionCreatedCompletionArgs(createdRootPath); NotifyEventCompletedAsync(dispatcher, CompletionArgs); }
/// <summary> /// Initializes a new instance of the <see cref="SolutionCreatedCompletionArgs"/> class. /// </summary> /// <param name="createdRootPath">The root path of the created solution.</param> public SolutionCreatedCompletionArgs(IRootPath createdRootPath) { CreatedRootPath = createdRootPath; }
public void UpdateRootPath(IRootPath rootPath) { this.RootPath = rootPath; }
public SolutionClosedEventContext(SolutionOperation solutionOperation, IRootPath closedRootPath, IRootPath newRootPath) { this.SolutionOperation = solutionOperation; this.ClosedRootPath = closedRootPath; this.NewRootPath = newRootPath; }
/// <summary> /// Initializes a new instance of the <see cref="SolutionClosedEventContext"/> class. /// </summary> /// <param name="solutionOperation">The solution operation.</param> /// <param name="closedRootPath">The path to the closed solution.</param> /// <param name="newRootPath">The new root path.</param> public SolutionClosedEventContext(SolutionOperation solutionOperation, IRootPath closedRootPath, IRootPath newRootPath) { SolutionOperation = solutionOperation; ClosedRootPath = closedRootPath; NewRootPath = newRootPath; }
/// <summary> /// Initializes a new instance of the <see cref="SolutionOpenedEventContext"/> class. /// </summary> /// <param name="openedRootPath">The opened solution path.</param> public SolutionOpenedEventContext(IRootPath openedRootPath) { OpenedRootPath = openedRootPath; }
/// <summary> /// Initializes a new instance of the <see cref="SolutionSelectedCompletionArgs"/> class. /// </summary> /// <param name="selectedRootPath">The root path of the selected solutioon.</param> public SolutionSelectedCompletionArgs(IRootPath selectedRootPath) { SelectedRootPath = selectedRootPath; }