Esempio n. 1
0
        public int CompareTo(object obj)
        {
            GallerySource source = obj as GallerySource;

            if (source == null)
            {
                return(-1);
            }
            return(Path.CompareTo(source.Path));
        }
Esempio n. 2
0
 private void Initialize(string name, string relativePath, MediaFolder parent, GallerySource source)
 {
     ID           = null;
     Name         = name;
     RelativePath = relativePath;
     Parent       = parent;
     Source       = source;
     if (!string.IsNullOrEmpty(RelativePathName) && Source != null)
     {
         CreateID();
     }
 }
Esempio n. 3
0
        public override bool Equals(object obj)
        {
            GallerySource source = obj as GallerySource;

            return(source != null && source.Path.Equals(Path, StringComparison.CurrentCultureIgnoreCase));
        }
Esempio n. 4
0
 protected FileSystemEntry(string name, string relativePath, MediaFolder parent, GallerySource source)
 {
     Initialize(name, relativePath, parent, source);
 }
Esempio n. 5
0
 protected FileSystemEntry(GallerySource source)
 {
     Initialize(string.Empty, string.Empty, null, source);
 }
Esempio n. 6
0
 public MediaFolder(GallerySource source) : base(source)
 {
     Initialize();
 }
Esempio n. 7
0
 public MediaFolder(string name, string relativePath, MediaFolder parent, GallerySource source)
     : base(name, relativePath, parent, source)
 {
     Initialize();
 }
Esempio n. 8
0
 protected MediaFile(GallerySource source) : base(source)
 {
     Initialize();
 }
Esempio n. 9
0
 public ImageFile(GallerySource source) : base(source)
 {
     Initialize();
 }
Esempio n. 10
0
 public VideoFile(GallerySource source) : base(source)
 {
     Initialize();
 }