Help with completing a C# Movie Rental Project in Visual Studio.
I have done some of the work but can not figure out the rest.
I have Visual Studio 2012 and Visual Studio 2010, so either one will work for me.
I will include completed Visual Studio work that I have done.
Also, I will upload an image of how the finished product should look.
Here are the assignment instructions:
Continuation of the MovieRental Program:
1. Movies.dat (NEW):
Create a flat text file named: movies.dat
File should be saved in project folder -> bin -> debug folder where .exe file is located
movie.dat has the following data:
Sci Fi,Star Trek
Comedy,Meet the Parents
Horror,Nightmare on Elms Street
2. Movie Category (NEW):
Add a comboBox control to store movie categories
The comboBox movie categories are filled during the form load event
The combobox movie categories is filled using a StreamReader from the datafile: movies.dat
If the category Items already contains the category do not add it to the items of the control
3. Movie Title (Update):
Remove the movie title textBox control
Clean up any code that was referencing the textBox movie title
Add a comboBox control to store movie titles
The comboBox to store movie titles is filled during the SelectedIndexChanged event on the categories comboBox
The combobox movie titles is filled using a StreamReader from the datafile: movies.dat
Only movie titles that correspond to the selected movie category should be displayed
4. Add Item to Cart (Update):
Remove the summaryRentals textbox control
Clean up any code that was referencing the textBox summaryRentals
Category, Title and Type (DVD, Blu-Ray) of movie must be selected before user can Add Item to Cart
Add a listbox control to store the shopping cart items
Each item added will be a new item in the shopping cart and consists of the category, title and type (DVD or Blu-Ray) of the movie to add
5. Remove from Cart (NEW):
After an item has been selected in the shopping cart listbox items and the Remove item button is clicked, have the item be removed from the shopping cart.
Remove button only enabled if shopping cart item selected to remove.
6. Check Out (Update):
Remove the summaryRentals Field
Change the hidden readonly textbox that is multi-line to display the total number of items in the shopping cart
Items in Shopping Cart: #Attachments
private void cbxCategorySelectBox_SelectedIndexChanged(object sender, EventArgs e)
cbxSelectMovieBox.Text = "Select Movie Title";
string category = cbxCategorySelectBox.SelectedItem.ToString();
// iterate the private member variable loaded on page load and check each one to see if it's category matches the selected category
foreach (Movie single
C:\Users\Brad\Documents\Visual Studio 2010\Projects\MovieRentals\MovieRentals\obj\x86\Debug\GenerateResource.read.1.tlog
C:\Users\Brad\Documents\Visual Studio 2010\Projects\MovieRentals\MovieRentals\obj\x86\Debug\GenerateResource.write.1.tlog
// COM, set the ComVisible attribute to true on that type.
// The following GUID is for the ID of the typelib if this project is exposed to COM
// Version information for an assembly consists of the following four values: