Create a spaceship object to populate a listview

Assignment Help DOT NET Programming
Reference no: EM131524317

Assignment

You will create an application in C# Windows Forms that uses a dialog to create a spaceship object to populate a ListView. This ListView will be able to display in either large or small icon mode using a menu option to switch between them. Selecting a spaceship in the ListView will give the user the ability to modify that object's values and apply those changes.

You will be creating two forms, the main window with a ListView, MenuStrip, and StatusStrip, and a dialog window with some user input fields for making a spaceship object. The inputs needed for the spaceship are a TextBox for name, a numericUpDown for crew size, a checkbox for indicating active duty, and a set of 3 radio buttons for selecting the type of ship (Cruiser, Destroyer, or Freighter). There should be three buttons on this dialog: OK, Cancel, and Apply. OK and Cancel will always be visible, but the Apply button will only appear when attempting to modify an item from the ListView. The OK button will add a ListViewItem with the current input to the main window's ListView, and the Cancel button will close the window without changing anything in the main window. The Apply button should use a custom EventHandler and custom event arguments to modify the selected item in the main window's ListView to have the current input values in the dialog. The main window's MenuStrip should have three separate menus: File, Ship, and View. Each of these menus will have the following options: File->Clear to clear the ListView, File->Exit to exit the application, Ship->New to open a dialog to make a new spaceship without the Apply button being visible, View->Large to make the ListView use LargeIcon mode, and View->Small to make the ListView use SmallIcon mode. The currently selected icon mode should have a checkmark displayed next to it. The StatusStrip should appear at the bottom of the window and have a single ToolStripStatusLabel showing the current number of items in the ListView. There should be unique images for each of the 3 ships with a large 32x32 and a small 16x16. Double-clicking an item in the ListView should bring up the spaceship dialog with the Apply button visible and the field pre-populated with the selected item's current values.

Follow these guidelines for this application:

You can use random images

User Input Dialog

• Radio buttons are used for ship selection that function as radio buttons should (only one option selectable at a time).

• Apply button should only be visible when opened by double clicking a ListViewItem.

• A TextBox for name, NumericUpDown for crew size, and CheckBox for active duty are present for additional user input about the spaceship.

• OK and Cancel buttons should always be present on this dialog.

ListView/Main Window

• ListView exists, set to dock/fill the parent container, and can be toggled between LargeIcon and SmallIcon mode.

• A StatusStrip is present at the bottom of the window that always displays the current Item count of the ListView.

• Double clicking a ListViewItem brings up the spaceship dialog as does selecting the Ship->New MenuStrip option.

• 3 Unique images are used in the ListView that correspond to the three ship types. Large(32x32) and Small(16x16) image lists are used for this purpose.

Events

• When the Apply button is pressed, a custom EventArgs class is used with an EventHandler to pass the updated spaceship information to the main window. The updated spaceship fields are used to update the currently selected spaceship.

• When the OK button is pressed, a new spaceship with the current input values is added to the ListView and the spaceship dialog is closed.

• When the Cancel button is pressed, the spaceship dialog closes without affecting the main window's controls.

Reference no: EM131524317

Questions Cloud

What is the evpi : What is the EVPI for the decision shown in Figure? Must you perform any calculations? Can you draw any conclusions regarding the relationship between value.
What are portfolio weights of each stock : what are the portfolio weights of each stock?
Find the range of the underlying asset price : Find the range of the underlying asset price such that the trader's positions will lead to a profit in three months?
Describe culture and socialization : Analyze contemporary social issues using the sociological imagination and use sociological theories and concepts to analyze everyday life.
Create a spaceship object to populate a listview : You will create an application in C# Windows Forms that uses a dialog to create a spaceship object to populate a ListView.
Calculate the project initial cash outlay : Tomatoes inc. is planning a project that involves machinery purchases of $100,000. calculate C0, the project's initial cash outlay.
Examine the eight elements of the staffing process : Examine the relationship between the eight elements of the staffing process and the four activities related to human resource planning
What is the price per share and what is its free cash flow : A firm has an enterprise value of $640 million. What is the price per share? what is its free cash flow?
What is the percentage of problem drinkers : To help counselors identify teenagers who may become problem drinkers, a psychologist created a written test and individuals with scores above 75 on this test.

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Build a virtual think-a-dot in visual basic 2010

As originally constructed, a marble could be dropped into one of three holes in the top of the machine. It would then percolate through the machine and come out a hole on the bottom left or right.

  Create a method in the customer class file

In order to access elements of an object individually, you will need to assign "getters" and "setters", and set their protection levels properly. Consider using the auto-implemented property as explained on pp. 256-259.

  Decide a similarity measure between any two objects

Select a reasonable size of objects to represent the population and Decide a similarity measure between any two objects - Explain the clustering difference between this clustering and the previous one.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Create a data base backup using asp.net with c# language

Create a DATA BASE BACKUP USING ASP.NET WITH C# LANGUAGE: Users right to login with their registered ID and password in the application

  Web site for a business

Create the application and/or a web site for a business (choice is yours).You must use five (5) programming techniques discussed in this class.Should be database driven with at least 25 products.Compile and test the application before you submit i..

  1 develop and test a web services based application that

1 develop and test a web services based application that meets the following requirements applying soa design

  Write a program named subscriptvalidation

Write a program named SubscriptValidation in which you declare an array of 10 integers and store values in the array.

  Write a program in c# that creates a professorrating class

Write a program in C# that creates a ProfessorRating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity.

  Create a typed dataset

We will create a typed dataset, a Data Layer class, several functions to access the data, and a connection to a database. We also will add a search form to allow the user to search records in the database and display the results of that search

  Create a gpa calculator that ask user to input list of class

Create a GPA calculator that Ask the user to input a list of classes and the number of tests per class. Once the user has entered this initial information, allow the list to be saved when the user exits the program.

  Write a program to find the sum of the test scores input

Write a C# program to find the sum of the test scores input by the user. Use this pseudocode as a guide to your design, in which the user inputs the number of test scores and each score.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd