コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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>();
 }
コード例 #5
0
        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;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
 public SolutionSelectedCompletionArgs(IRootPath SelectedRootPath)
 {
     this.SelectedRootPath = SelectedRootPath;
 }
コード例 #8
0
 public SolutionRoot(IRootPath path, IRootProperties properties, IComparer <ITreeNodePath> nodeComparer)
     : base(path, properties, nodeComparer)
 {
 }
コード例 #9
0
 public SolutionCreatedCompletionArgs(IRootPath CreatedRootPath)
 {
     this.CreatedRootPath = CreatedRootPath;
 }
コード例 #10
0
        /// <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);
        }
コード例 #11
0
 /// <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;
 }
コード例 #12
0
 /// <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;
 }
コード例 #13
0
        /// <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);
        }
コード例 #14
0
 /// <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;
 }
コード例 #15
0
 public void UpdateRootPath(IRootPath rootPath)
 {
     this.RootPath = rootPath;
 }
コード例 #16
0
 public SolutionClosedEventContext(SolutionOperation solutionOperation, IRootPath closedRootPath, IRootPath newRootPath)
 {
     this.SolutionOperation = solutionOperation;
     this.ClosedRootPath    = closedRootPath;
     this.NewRootPath       = newRootPath;
 }
コード例 #17
0
 /// <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;
 }
コード例 #18
0
 /// <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;
 }
コード例 #19
0
 /// <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;
 }