示例#1
0
 public LocalFileProperties(SynchronizableObject obj, FileInfo localFile)
     : base(obj)
 {
     Name = localFile.Name;
     Extension = localFile.Extension;
     lastUpdated = DateTime.Now;
 }
        public IProperty CreateProperties(SynchronizableObject obj)
        {
            LocalFileSource source = obj.Source as LocalFileSource;
            if (source == null)
                return null;

            IProperty prop = new LocalFileProperties(obj, new FileInfo(obj.Uri.AbsolutePath.TrimStart('/')));
            obj.SetProperty("file", prop);
            return prop;
        }
 public bool CanHandle(SynchronizableObject obj)
 {
     return obj.Source is LocalFileSource;
 }
示例#4
0
 public CommonFileProperties(SynchronizableObject obj)
     : base(obj)
 {
 }