public static void Rename([NotNull] LibraryBase library, [NotNull] string newName) { Assert.ArgumentNotNull(library, nameof(library)); Assert.ArgumentNotNull(newName, nameof(newName)); library.Name = newName; library.Save(); }
public static void Delete([NotNull] LibraryBase library) { Assert.ArgumentNotNull(library, nameof(library)); if (File.Exists(library.FileName)) { File.Delete(library.FileName); } libraries.Remove(library); }
public static void Add([NotNull] LibraryBase library) { Assert.ArgumentNotNull(library, nameof(library)); libraries.Add(library); }