//Constructor public Book(string title, Author author, Language language, BookSection bookSection) : base(title) { this.BookAuthor = author; this.BookLanguage = language; this.bookSection = bookSection; }
static void Main() { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new AddBooks()); Library TelerikLibrary = new Library(); //string line; //using (StreamReader readAuthors = new StreamReader("../../Authors.txt")) //{ // line = readAuthors.ReadLine(); // while (line != null) // { // string[] author = line.Split(); // Library.authorsList.Add(new Author(author[0], author[1])); // } //} User me = new Administrator("Nikolai", "Aleksiev", "*****@*****.**", "123"); User newAdmin = new Administrator("Georgi", "Petrov", "*****@*****.**", "123"); User newClient = new Client("Peter", "Georgiev", "*****@*****.**", "123"); Library.clientsList.Add(newAdmin); Library.clientsList.Add(me); Library.clientsList.Add(newClient); Author stephenKing = new Author("Stephen", "King"); Author newAuthor = new Author("Thomas", "Grey"); Library.authorsList.Add(stephenKing); Library.authorsList.Add(newAuthor); Library.booksList.Add(new Book("The stand", stephenKing, Language.English, new BookSection(Section.SciFi))); Application.Run(new LoginMenu()); }
public void AddAuthorstoList(Author author) { Library.authorsList.Add(author); }