Beispiel #1
0
        public DisplayQuote(DeskQuote previousDeskQuote)
        {
            InitializeComponent();

            CurrentDeskQuote = previousDeskQuote;

            FirstNameValue.Text = CurrentDeskQuote.FirstName;
            LastNameValue.Text  = CurrentDeskQuote.LastName;

            WidthValue.Text   = System.Convert.ToString(CurrentDeskQuote.newDesk1.width);
            DepthValue.Text   = System.Convert.ToString(CurrentDeskQuote.newDesk1.depth);
            DeskAreaCost.Text = "$" + System.Convert.ToString(CurrentDeskQuote.newDesk1.DeskAreaCostCalc());

            DrawerCtValue.Text = System.Convert.ToString(CurrentDeskQuote.newDesk1.drawerCount);
            DrawerCtCost.Text  = "$" + System.Convert.ToString(CurrentDeskQuote.newDesk1.drawerCount * 50);

            MaterialValue.Text = System.Convert.ToString(CurrentDeskQuote.newDesk1.surface);
            MaterialCost.Text  = "$" + System.Convert.ToString((double)CurrentDeskQuote.newDesk1.surface);

            ShippingOpValue.Text = System.Convert.ToString(CurrentDeskQuote.ShippingDays) + " Day";
            ShippingOpCost.Text  = "$" + System.Convert.ToString(CurrentDeskQuote.ShippingCost);

            DeskCost.Text = "$" + System.Convert.ToString(CurrentDeskQuote.DeskCost + CurrentDeskQuote.ShippingCost);
        }