Exemple #1
0
        public FileProperties CreateFileInfo(string filePath, User owner)
        {
            FileProperties prop = new FileProperties(filePath);

            prop.CloudLocation = this.CloudLocation;
            // Adding owners of the files.
            prop.Owners.Add(owner);
            return(prop);
        }
Exemple #2
0
 internal void AddFile(FileProperties file)
 {
     if (IsFileExists(file.CombinedHash) == false)
     {
         this.DataFiles.Add(file);
     }
     else
     {
         MessageBox.Show("File already exists. Nothing to Add");
     }
 }