Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeRenamedEventContext"/> class.
 /// </summary>
 /// <param name="path">The path to the renamed node.</param>
 /// <param name="newName">The new name.</param>
 /// <param name="isUndoRedo">True if the operation can be undone.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 public NodeRenamedEventContext(ITreeNodePath path, string newName, bool isUndoRedo, IRootProperties rootProperties)
 {
     Path           = path;
     NewName        = newName;
     IsUndoRedo     = isUndoRedo;
     RootProperties = rootProperties;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeMovedEventContext"/> class.
 /// </summary>
 /// <param name="path">The moved node path.</param>
 /// <param name="newParentPath">The path to the new parent.</param>
 /// <param name="isUndoRedo">True if the operation can be undone.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 public NodeMovedEventContext(ITreeNodePath path, IFolderPath newParentPath, bool isUndoRedo, IRootProperties rootProperties)
 {
     Path           = path;
     NewParentPath  = newParentPath;
     IsUndoRedo     = isUndoRedo;
     RootProperties = rootProperties;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SolutionOpenedCompletionArgs"/> class.
 /// </summary>
 /// <param name="openedRootProperties">The root properties of the opened solution.</param>
 /// <param name="openedRootComparer">The comparer of the opened solution.</param>
 /// <param name="expandedFolderList">The expanded folder list.</param>
 /// <param name="context">The operation context.</param>
 public SolutionOpenedCompletionArgs(IRootProperties openedRootProperties, IComparer <ITreeNodePath> openedRootComparer, IList <IFolderPath> expandedFolderList, object context)
 {
     OpenedRootProperties = openedRootProperties;
     OpenedRootComparer   = openedRootComparer;
     ExpandedFolderList   = expandedFolderList;
     Context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentAddedEventContext"/> class.
 /// </summary>
 /// <param name="documentOperation">The operation.</param>
 /// <param name="destinationFolderPath">The destination folder path.</param>
 /// <param name="documentPathList">The list of documents added.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 public DocumentAddedEventContext(DocumentOperation documentOperation, IFolderPath destinationFolderPath, IList <IDocumentPath> documentPathList, IRootProperties rootProperties)
 {
     DocumentOperation     = documentOperation;
     DestinationFolderPath = destinationFolderPath;
     DocumentPathList      = documentPathList;
     RootProperties        = rootProperties;
 }
Пример #5
0
 public SolutionOpenedCompletionArgs(IRootProperties OpenedRootProperties, IComparer <ITreeNodePath> OpenedRootComparer, IList <IFolderPath> ExpandedFolderList, object Context)
 {
     this.OpenedRootProperties = OpenedRootProperties;
     this.OpenedRootComparer   = OpenedRootComparer;
     this.ExpandedFolderList   = ExpandedFolderList;
     this.Context = Context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderEnumeratedEventContext"/> class.
 /// </summary>
 /// <param name="parentPath">The parent path.</param>
 /// <param name="parentPathList">The list of parents of enumerated folders.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 /// <param name="expandedFolderList">The list of expanded folders in the enumeration.</param>
 /// <param name="context">The enumeration context.</param>
 public FolderEnumeratedEventContext(IFolderPath parentPath, ICollection <IFolderPath> parentPathList, IRootProperties rootProperties, ICollection <IFolderPath> expandedFolderList, object context)
 {
     ParentPath         = parentPath;
     ParentPathList     = parentPathList;
     RootProperties     = rootProperties;
     ExpandedFolderList = expandedFolderList;
     Context            = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NodePastedEventContext"/> class.
 /// </summary>
 /// <param name="path">The path to the pasted node.</param>
 /// <param name="parentPath">The path to the parent.</param>
 /// <param name="pathTable">The table of children.</param>
 /// <param name="updatedParentTable">The table of updated parent in children.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 /// <param name="isUndoRedo">True if the operation can be undone.</param>
 public NodePastedEventContext(ITreeNodePath path, IFolderPath parentPath, IReadOnlyDictionary <ITreeNodePath, IPathConnection> pathTable, Dictionary <ITreeNodePath, IFolderPath> updatedParentTable, IRootProperties rootProperties, bool isUndoRedo)
 {
     Path               = path;
     ParentPath         = parentPath;
     PathTable          = pathTable;
     UpdatedParentTable = updatedParentTable;
     RootProperties     = rootProperties;
     IsUndoRedo         = isUndoRedo;
 }
Пример #8
0
        /// <summary>
        /// Notifies handlers that the operation is completed.
        /// </summary>
        /// <param name="openedRootProperties">The properties of the opened solution.</param>
        /// <param name="openedRootComparer">The comparer of the opened solution.</param>
        /// <param name="expandedFolderList">The list of expanded folders.</param>
        /// <param name="context">The open context.</param>
        public virtual void NotifyCompleted(IRootProperties openedRootProperties, IComparer <ITreeNodePath> openedRootComparer, IList <IFolderPath> expandedFolderList, object context)
        {
            ISolutionOpenedCompletionArgs CompletionArgs = new SolutionOpenedCompletionArgs(openedRootProperties, openedRootComparer, expandedFolderList, context);

            NotifyEventCompleted(CompletionArgs);
        }
Пример #9
0
 public FolderCreatedEventContext(IFolderPath parentPath, string folderName, IRootProperties rootProperties)
 {
     this.ParentPath     = parentPath;
     this.FolderName     = folderName;
     this.RootProperties = rootProperties;
 }
Пример #10
0
 public SolutionRoot(IRootPath path, IRootProperties properties, IComparer <ITreeNodePath> nodeComparer)
     : base(path, properties, nodeComparer)
 {
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentCreatedEventContext"/> class.
 /// </summary>
 /// <param name="destinationFolderPath">The destination folder path.</param>
 /// <param name="documentType">The document type.</param>
 /// <param name="rootProperties">The properties of the root object.</param>
 public DocumentCreatedEventContext(IFolderPath destinationFolderPath, IDocumentType documentType, IRootProperties rootProperties)
 {
     this.DestinationFolderPath = destinationFolderPath;
     this.DocumentType          = documentType;
     this.RootProperties        = rootProperties;
 }
Пример #12
0
 public RootPropertiesRequestedEventContext(IRootProperties properties)
 {
     this.Properties = properties;
 }