コード例 #1
0
ファイル: Folder.cs プロジェクト: AnnieBougie/CVS-Library-Net
 /// <summary>
 /// Initializes a new instance of the Folder class
 /// The sub folders in the tree use this constructor, which contains the parent parameter.
 /// The Parent Info property is used with the module path name to name the new folder
 /// </summary>
 /// <param name="name">Name of the folder. This also is added to the module name of the parent</param>
 /// <param name="parent">Parent folder</param>
 public Folder(string name, Folder parent)
     : base(parent)
 {
     DirectoryInfo di = new DirectoryInfo(Path.Combine(parent.Info.FullName, name));
      Info = di;
      _childItems = new List<ICVSItem>();
      _cvsFolder = new CVSFolder(this);
 }
コード例 #2
0
ファイル: Folder.cs プロジェクト: AnnieBougie/CVS-Library-Net
 /// <summary>
 /// Initializes a new instance of the Folder class
 /// The root folder in the tree uses this constructor
 /// The Parent property of the root folder is null. All other objects in the tree have a Parent folder
 /// </summary>
 /// <param name="info">DirectoryInfo of local folder that is the root folder for the CVS module</param>
 /// <param name="connection">CVS connection string - used to write the CVS Root file</param>
 /// <param name="repository">CVS repository</param>
 /// <param name="module">CVS module for current folder</param>
 public Folder(FileSystemInfo info, string connection, string repository, string module)
     : base(info)
 {
     _cvsFolder = new CVSFolder(this);
      _childItems = new List<ICVSItem>();
      _module = module;
      _repository = repository;
      _connection = connection;
 }