private void GetQuote_Click(object sender, EventArgs e) { //Collect information from user Desk desk = new Desk(); DeskQuote deskQuote = new DeskQuote(); deskQuote.CustomerName = txtName.Text; desk.Width = (int)numericUpDown1.Value; desk.Depth = (int)numericUpDown2.Value; desk.Drawers = (int)numericUpDown3.Value; desk.DeskMaterial = (Desk.Material)comboBox1.SelectedValue; deskQuote.DeskQuoteDelivery = (DeskQuote.Delivery)comboBox2.SelectedValue; deskQuote.QuoteDate = DateTime.Now; deskQuote.Desk = desk; DisplayQuote displayQuoteForm = new DisplayQuote(deskQuote, desk); displayQuoteForm.Show(); this.Hide(); }