Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace vehicleGUI
- {
- public partial class Form1 : Form
- {
- Customer myCustomer = new Customer();
- Vehicle myVehicle = new Vehicle();
- public Form1()
- {
- InitializeComponent();
- }
- private void clearButton_Click(object sender, EventArgs e)
- {
- fNameBox.Text = "";
- lNameBox.Text = "";
- pNumberBox.Text = "";
- ageBox.Text = "";
- creditScoreBox.Text = "";
- }
- private static void validateButton_Click(object sender, EventArgs e)
- {
- /*
- call is_25 function
- if function call is valid
- MessageBox.Show("You have been assigned a vehicle")
- else
- MessageBox.Show("No vehicle for you!")
- */
- /*public bool is_TwentyFive()
- {
- MessageBox.Show("You've been assigned a 1999 Ford Taurus with a VIN number of 123456"), "VERIFY MSG", MessageBoxButtons.OK)
- return;
- }
- else
- {
- MessageBox.Show("You've been denied. Please try again when you're not underaged.", "UNDERAGED BANNED", MessageBoxButtons.OK)
- return;
- }*/
- Customer currentCustomer = new Customer();
- currentCustomer.is_TwentyFive();
- return;
- }
- private void retrieveButton_Click(object sender, EventArgs e)
- {
- fNameBox.Text = myCustomer.firstName; //Ask about the conversions
- lNameBox.Text = myCustomer.lastName;
- pNumberBox.Text = Convert.ToString(myCustomer.phoneNumber);
- ageBox.Text = Convert.ToString(myCustomer.custAge);
- creditScoreBox.Text = Convert.ToString(myCustomer.CreditScore);
- }
- //private void button1_Click(object sender, EventArgs e)
- // {
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement