Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Movie Rentals

choll
choll 


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 Action,GI Joe Horror,Saw Action,Terminator Horror,Friday 13th Horror,Nightmare on Elms Street Comedy,Caddyshack Drama,Gran Torino Sci Fi,Avatar 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 Customer Invoice: Items in Shopping Cart: # Attachments Tags Clarifications

Answers

C# Movie Rentals Solution

Seeker
Seeker 



Visual Studio 2010 solution attached.

Addresses all 6 categories listed above.
Attachments
MovieRentals.zip (204 K) Download























Preview
private void cbxCategorySelectBox_SelectedIndexChanged(object sender, EventArgs e) { cbxSelectMovieBox.Items.Clear(); 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

Preview
false; this.movieImagePictureBox.Click += new System.EventHandler(this.movieImagePictureBox_Click); // // checkBoxMemberSelect // this.checkBoxMemberSelect.AutoSize = true; this.checkBoxMemberSelect.Location = new System.Drawing.Point(18, 89); this.checkBoxMemberSelect.Name = "checkBoxMemberSelect"; this.checkBoxMemberSelect.Size = new System.Drawing.Size(121, 17); this.checkBoxMemberSelect.TabIndex = 1; this.checkBoxMemberSelect.Text = "Are You A Member?"; this.checkBoxMem

Preview
{ public string Category { get; set; } public

Preview
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 C:\Users\Brad\Documents\Visual Studio

Preview
/// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new

Preview
assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e231c734-6fa4-4088-834d-802cd9935268")] // Version information for an assembly consists of the following four values: //

Preview
or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.C

Preview
{ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance;

Screenshots
Purchase Answer