Beispiel #1
0
        public int CompareTo(object obj)
        {
            GallerySource source = obj as GallerySource;

            if (source == null)
            {
                return(-1);
            }
            return(Path.CompareTo(source.Path));
        }
Beispiel #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();
     }
 }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            GallerySource source = obj as GallerySource;

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