Library Manager is a simple program for managing a book library written in C#.
- searching for books using regular expressions,
- sorting books by different criteria, such as title, author, publication year, or genre,
- adding books,
- editing books,
- deleting books,
- displaying information about books.
To run the program, follow these steps:
- Compile the source files using an appropriate C# compiler or build tool, such as Visual Studio, Rider, or the .NET CLI.
- Run the executable file or start the application using the
Mainmethod.
After starting the program, the main menu will be displayed. It allows the user to choose different actions. The menu contains the following options:
This option displays all books stored in the library. Books can be sorted according to the user's choice: by title, author, publication year, or genre.
This option allows the user to add a new book to the library. After selecting this option, the user will be asked to enter the title, author, publication year, and genre of the new book.
This option allows the user to edit an existing book in the library. The user will be asked to enter the title of the book they want to edit, and then they will be able to change the title, author, publication year, or genre of the selected book.
This option allows the user to delete a book from the library. The user will be asked to enter the title of the book they want to delete, and then they will be able to select the book to remove from the matching search results.
This option closes the program.