Undergraduate Websites, web programming

C# WPF Assignment

    1) An abstract Media class that contains the following properties: a string title, a string media type, a unique int serial number, an int for number of times lent, a boolean that indicates whether it is currently borrowed or available, and a string that represents the name of the library member currently borrowing the piece of media
    2) A Book class that inherits from Media and has a page count property
    3) A Magazine class that inherits from Book and has an issue number property
    4) A Movie class that inherits from Media and has a run time property
    5) A LibraryMember class that contains a string name property
    6) A static Library class that contains a collection of all of its media and a list of all its members
    7) Initialize your collection of media in Library to contain 5 books, 5 magazines, and 5 movies (you may pass whatever values you want into their constructors for title, page count, etc.)
    8) Initialize your collection of members in Library to contain 5 library members with names of your choosing.
    9) A DataGrid of all media in the library that shows their title, type, whether they are available or lent out, and who is currently borrowing them.
    10) A DataGrid of all library members in the library that shows their names.
    11) The ability to lend out available media. When media is lent out, a LibraryMember must be selected, and then the media display should reflect who is currently borrowing the media.
    12) The ability to have lent media brought back
    13) A popup that appears whenever media is lent or brought back, which says what has occurred. If the user tries to lend out an unavailable piece of media or tries to have media brought back that isnt lent out, the popup should tell the user what went wrong.
    14) A Modify Media button which, if a Media is currently selected when it is clicked, opens a new page. The new page should allow the user to modify the title and media type of the Media. This page should contain a submit button. When the submit button is clicked, the changes made to the title and media type should be applied to the actual Media object in the model, and we should be returned to the main window, where the changes that were made to the Media object should be reflected in the Media data grid.
    15) A Modify Member button which, if a LibraryMember is currently selected when it is clicked, opens a new page. The new page should allow the user to modify the name of the LibraryMember. This page should contain a submit button. When the submit button is clicked, the change made to the name should be applied to the actual LibraryMember object in the model, and we should be returned to the main window, where the changes that were made to the Librarymember object should be reflected in the LibraryMember data grid.
    16) Create a virtual function in Media called MediaInfo that returns a string that details the medias Title, MediaType, SerialNumber, IsAvailable, TimesLent and CurrentBorrower . Override this function in the Book, Magazine, and Movie classes. In each of these classes, the overridden function should first call the base function, and then add the string the base function returns to an additional string about PageCount, IssueNumber, or RunTime (for Book, Magazine, or Movie, respectively).
    17) Add a button to the WPF window that allows the user to display the info (the string returned by the function in the previous feature) of the currently-selected media in a popup.
    18) Add a list of Media called borrowHistory to the LibraryMember class. Make it so that whenever some media is lent out, the library member who is borrowing it has a reference to that media added to their borrowHistory list.
    19) Add a list of Media called currentlyBorrowed to the LibraryMember class. Make it so that whenever the library member borrows some media, a reference to that media is added to the currentlyBorrowed list, and when the library member returns some media, the reference to that media is removed from the currentlyBorrowed list.
    20) Add a function to the LibraryMember class called MemberInfo that returns a string that includes the members name, as well as a list of all the titles of media this member has ever borrowed, and finally a list of all the media titles the member is currently borrowing.
    21) Add a button to the WPF window that allows the user to display the info (the string returned by the function in the previous feature) of the currently-selected member in a popup.