Beispiel #1
0
        /// <summary>
        /// Move or add each file in the list of files to a specified bundle.
        /// Files in that list that are present in any other bundle will be moved.
        /// </summary>
        public void MoveOrAdd(ClassCommit bundle, List<string> files)
        {
            // Remove all listed files from any bundle in which they might appear
            foreach (var c in Bundle)
                c.Prune(files);

            // Add listed files to a named bundle
            bundle.AddFiles(files);
        }
Beispiel #2
0
        /// <summary>
        /// Move or add each file in the list of files to a specified bundle.
        /// Files in that list that are present in any other bundle will be moved.
        /// </summary>
        public void MoveOrAdd(ClassCommit bundle, List <string> files)
        {
            // Remove all listed files from any bundle in which they might appear
            foreach (var c in Bundle)
            {
                c.Prune(files);
            }

            // Add listed files to a named bundle
            bundle.AddFiles(files);
        }
Beispiel #3
0
        /// <summary>
        /// Add a new commit bundle to the list
        /// </summary>
        public void NewBundle(string description, List<string> files)
        {
            // Remove all files listed from every bundle
            foreach (var c in Bundle)
                c.Prune(files);

            // Add a new bundle with these files
            ClassCommit commit = new ClassCommit(description);
            commit.AddFiles(files);
            Bundle.Add(commit);
        }
Beispiel #4
0
        public static string GetCommitNodeText(ClassCommit commit)
        {
            if (commit == null)
            {
                return(string.Empty);
            }
            var rerult = commit.DescriptionTitle;

            if (commit.Files.Count > 0)
            {
                rerult += " (" + commit.Files.Count + ")";
            }
            return(rerult);
        }
Beispiel #5
0
        /// <summary>
        /// Add a new commit bundle to the list
        /// </summary>
        public void NewBundle(string description, List <string> files)
        {
            // Remove all files listed from every bundle
            foreach (var c in Bundle)
            {
                c.Prune(files);
            }

            // Add a new bundle with these files
            ClassCommit commit = new ClassCommit(description);

            commit.AddFiles(files);
            Bundle.Add(commit);
        }
Beispiel #6
0
 /// <summary>
 /// Set a list of files to appear in the files pane
 /// </summary>
 public void SetFiles(ClassCommit bundle)
 {
     listFiles.Items.AddRange(bundle.Files.ToArray());
 }
Beispiel #7
0
 public static string GetCommitNodeText(ClassCommit commit)
 {
     if (commit == null) return string.Empty;
     var rerult = commit.DescriptionTitle;
     if (commit.Files.Count > 0)
     {
         rerult += " (" + commit.Files.Count + ")";
     }
     return rerult;
 }
Beispiel #8
0
 /// <summary>
 /// Set a list of files to appear in the files pane
 /// </summary>
 public void SetFiles(ClassCommit bundle)
 {
     listFiles.Items.AddRange(bundle.Files.ToArray());
     BtSelectAllClick(null, null);
 }
Beispiel #9
0
 /// <summary>
 /// Set a list of files to appear in the files pane
 /// </summary>
 public void SetFiles(ClassCommit bundle)
 {
     listFiles.Items.AddRange(bundle.Files.ToArray());
 }
Beispiel #10
0
 /// <summary>
 /// Set a list of files to appear in the files pane
 /// </summary>
 public void SetFiles(ClassCommit bundle)
 {
     listFiles.Items.AddRange(bundle.Files.ToArray());
     BtSelectAllClick(null, null);
 }