public int CompareTo(object obj) { GallerySource source = obj as GallerySource; if (source == null) { return(-1); } return(GetIDBase().CompareTo(source.GetIDBase())); }
public bool AddSource(GallerySource source) { if (Sources.Contains(source)) { return(false); } Sources.Add(source); Sources.Sort(); return(true); }
protected FileSystemEntry(string name, string relativePath, MediaFolder parent, GallerySource source) { ID = null; Name = name; RelativePath = relativePath; Parent = parent; Source = source; if (!(string.IsNullOrEmpty(RelativePathName) && string.IsNullOrEmpty(Name)) && Source != null) { CreateID(); } }
public ImageFile(string name, string relativePath, MediaFolder parent, GallerySource source) : base(name, relativePath, parent, source) { Initialize(); }
public void RemoveSource(GallerySource source) { Sources.Remove(source); }
public override bool Equals(object obj) { GallerySource source = obj as GallerySource; return(source != null && source.GetIDBase().Equals(GetIDBase(), StringComparison.CurrentCultureIgnoreCase)); }
public MediaFolder(string name, string relativePath, MediaFolder parent, GallerySource source) : base(name, relativePath, parent, source) { Initialize(false); }