Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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());
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 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);
 }