示例#1
0
 /// <summary>
 /// Deletes the given file from this project.
 /// </summary>
 public void DeleteFile(Gp4File f)
 {
     files.Items.Remove(f);
 }
示例#2
0
 /// <summary>
 /// Sets the target name of the given file to the given name.
 /// </summary>
 /// <param name="f">The file to rename</param>
 /// <param name="newName">The new filename</param>
 public void RenameFile(Gp4File f, string newName)
 {
     f.TargetPath = f.DirName + newName;
 }