/// <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); }
/// <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); }
/// <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); }
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); }
/// <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); }
/// <summary> /// Set a list of files to appear in the files pane /// </summary> public void SetFiles(ClassCommit bundle) { listFiles.Items.AddRange(bundle.Files.ToArray()); }
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; }
/// <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); }