Ejemplo n.º 1
0
        private void SetDrawerPrice()
        {
            int drawers = Int32.Parse(deskDrawers.Text);

            label15.Text = Convert.ToString(drawers);
            dquote.DrawerCost(drawers);
            lblDrawerCost.Text = dquote.DrawerCost(desk.GetNumDrawers()).ToString() + ".00";
        }
Ejemplo n.º 2
0
        public string QuoteToString()
        {
            string stringQuote = "";

            stringQuote = stringQuote + desk.GetWidth().ToString() + ",";
            stringQuote = stringQuote + desk.GetWidth().ToString() + ",";
            stringQuote = stringQuote + desk.GetSurfaceMaterial().ToLower() + ",";
            stringQuote = stringQuote + desk.GetNumDrawers() + ",";
            stringQuote = stringQuote + this.rushOrderDays.ToString() + ",";
            stringQuote = stringQuote + this.customerFirstName.ToLower() + ",";
            stringQuote = stringQuote + this.customerLastName.ToLower() + ",";
            stringQuote = stringQuote + this.totalPrice.ToString().ToLower();
            return(stringQuote);
        }