Ejemplo n.º 1
0
        private void submitBtn_Click(object sender, EventArgs e)
        {
            // get input from various boxes
            int    width    = int.Parse(widthBox.Text);
            int    depth    = int.Parse(depthBox.Text);
            int    drawers  = int.Parse(drawerBox.Text);
            string mats     = materialBox.Text;
            int    rushD    = int.Parse(rushBox.Text);
            string customer = customerBox.Text;

            // plug into DeskQuote object
            DeskQuote quote = new DeskQuote(width, depth, drawers, mats, rushD, customer);

            // add quote to list and return to main menu
            var mainMenu = (MainMenu)Tag;

            // mainMenu.quotes.Add(quote);
            mainMenu.Show();
            Close();
        }