Ejemplo n.º 1
0
 public AnalyseFilesProgress(int numberOfFilesLeftToAnalyse, int numExactCopies, int numResolved, int numConflicts, int numErrors, string changedFilePath, ProjectFileStatusEnum changedStatus)
 {
     NumberOfFilesLeftToAnalyse = numberOfFilesLeftToAnalyse;
     NumberOfExactCopies        = numExactCopies;
     NumberOfResolved           = numResolved;
     NumberOfConflicts          = numConflicts;
     NumberOfErrors             = numErrors;
     ChangedFilePath            = changedFilePath;
     ChangedFileStatus          = changedStatus;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new node and adds it as a child.
        /// </summary>
        /// <param name="associatedFileInformation">The IFileInformation to associated with the node. Can be null if it needs to be set later.</param>
        /// <param name="nodeText">The text of the node. Can be null if it needs to be set later.</param>
        /// <returns>The created node.</returns>
        public virtual ProjectFileTreeNode AddChildNode(IFileInformation associatedFileInformation, String nodeText)
        {
            if (nodeText == null)
            {
                nodeText = "";
            }

            ProjectFileTreeNode node = new ProjectFileTreeNode(this, parentTree);

            node.Text           = nodeText;
            node.associatedFile = associatedFileInformation;
            childNodes.Add(node);
            parentTree.AddNode(node);
            status = ProjectFileStatusEnum.Folder;
            RaiseNodeChangedEvent(this, true);
            return(node);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a new node and adds it as a child.
        /// </summary>
        /// <param name="associatedFileInformation">The IFileInformation to associated with the node. Can be null if it needs to be set later.</param>
        /// <param name="nodeText">The text of the node. Can be null if it needs to be set later.</param>
        /// <returns>The created node.</returns>
        public virtual ProjectFileTreeNode AddChildNode(IFileInformation associatedFileInformation, String nodeText)
        {
            if (nodeText == null)
            {
                nodeText = "";
            }

            ProjectFileTreeNode node = new ProjectFileTreeNode(this, parentTree);

            node.Text           = nodeText;
            node.associatedFile = associatedFileInformation;
            if (childNodes.Any(c => c.Text == nodeText))
            {
                log.ErrorFormat("Duplicated {0} node called {1}", associatedFileInformation == null ? "folder" : "file", nodeText);
            }
            childNodes.Add(node);
            parentTree.AddNode(node);
            status = ProjectFileStatusEnum.Folder;
            RaiseNodeChangedEvent(this, true);
            return(node);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates a new node and adds it as a child.
        /// </summary>
        /// <param name="associatedFileInformation">The IFileInformation to associated with the node. Can be null if it needs to be set later.</param>
        /// <param name="nodeText">The text of the node. Can be null if it needs to be set later.</param>
        /// <returns>The created node.</returns>
        public virtual ProjectFileTreeNode AddChildNode(IFileInformation associatedFileInformation, String nodeText)
        {
            if (nodeText == null)
                nodeText = "";

            ProjectFileTreeNode node = new ProjectFileTreeNode(this, parentTree);
            node.Text = nodeText;
            node.associatedFile = associatedFileInformation;
            if (childNodes.Any(c => c.Text == nodeText))
            {
                log.ErrorFormat("Duplicated {0} node called {1}", associatedFileInformation == null ? "folder" : "file", nodeText);
            }
            childNodes.Add(node);
            parentTree.AddNode(node);
            status = ProjectFileStatusEnum.Folder;
            RaiseNodeChangedEvent(this, true);
            return node;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Creates a new node and adds it as a child.
        /// </summary>
        /// <param name="associatedFileInformation">The IFileInformation to associated with the node. Can be null if it needs to be set later.</param>
        /// <param name="nodeText">The text of the node. Can be null if it needs to be set later.</param>
        /// <returns>The created node.</returns>
        public virtual ProjectFileTreeNode AddChildNode(IFileInformation associatedFileInformation, String nodeText)
        {
            if (nodeText == null)
                nodeText = "";

            ProjectFileTreeNode node = new ProjectFileTreeNode(this, parentTree);
            node.Text = nodeText;
            node.associatedFile = associatedFileInformation;
            childNodes.Add(node);
            parentTree.AddNode(node);
            status = ProjectFileStatusEnum.Folder;
            RaiseNodeChangedEvent(this, true);
            return node;
        }