Ejemplo n.º 1
0
 public ReceiptView(BasketList basket)
 {
     shopping_basket            = basket;
     shopping_basket.AddedItem += new System.EventHandler(this.UpdateList);
     InitializeComponent();
     receiptList.View = View.Details;
     receiptList.Columns.Add("Style", -2, HorizontalAlignment.Left);
     receiptList.Columns.Add("Size", -2, HorizontalAlignment.Right);
     receiptList.Columns.Add("Price", -2, HorizontalAlignment.Left);
     UpdateList();
 }
Ejemplo n.º 2
0
        public Form1(BasketList basket)
        {
            myBasket = basket;

            InitializeComponent();

            cbFezStyle.Items.Add(new FezStyle("This is classy.\nLined in PVC.",
                                              "The Imperial", 30.45m, true));
            cbFezStyle.Items.Add(new FezStyle("This is really classy.\nLined in mink.",
                                              "The Royale", 45.27m, true));
            cbFezStyle.Items.Add(new FezStyle("This is so damn classy.\nLined in gold plated mink.",
                                              "The Continental", 77.09m, true));
            cbFezStyle.SelectedIndex = 0;

            cbFezSize.Items.Add(new FezSize("Baby (-10%)", 0.90));
            cbFezSize.Items.Add(new FezSize("S", 1.00));
            cbFezSize.Items.Add(new FezSize("M", 1.00));
            cbFezSize.Items.Add(new FezSize("L", 1.00));
            cbFezSize.Items.Add(new FezSize("XL (+20%)", 1.20));
            cbFezSize.SelectedIndex = 2;
        }