|
need assistance or information on how to take information found in one class and link it into Program.cs.
It is a menu system, basically I want the user to be able to locate a vehicle (option 1) and when they enter option 1, all the relevant vehicle information is pulled from the vehicle class and displayed.
I need the application to display vehicleMake, vehicleModel, vehicleWeight and vehicleRegNo once option 1 is pressed. If anyone out there would be able to assist me and wants to take a look at the code, please reply in this thread and I will show you the code.
I have my vehicle details inside Program.cs
Say for example myDepots[0].AddVehicle(new Vehicle("Ford", "L9000", "200KG", "123"));
This is an example of 1 vehicle which is at the first depot, what I need the menu to do is when the user chooses option 1 (locate a vehicle), the user will enter "Ford" and the application will then look through the code and display:
"This vehicle is the Ford L9000 which has a capacity of 200KG and the regNo is 123."
If you know what I mean? I can post the actual code if someone is able to help, please bare in mind I'm a C# BEGINNER and am not knowledgeable of complex terms, so if someone is able to help and uses complex programming language, expect me to reply and ask for a more simplified version
Thank you
Rafa
|