Example #1
0
 public QtyItem(Form parent, UIHandler.UpdateDelegate updater, Item item, Point location, Size size)
     : base(parent, updater, item, location, size)
 {
     // prompt for quantity
     this.priceEach    = item.Price;
     this.taxable      = item.Taxable;
     this.revenueGroup = item.RevenueGroup;
     // no details
 }
Example #2
0
 public MiscItem(Form parent, UIHandler.UpdateDelegate updater, Item item, Point location, Size size)
     : base(parent, updater, item, location, size)
 {
     //quantity is fixed at 1
     // prompt for price
     // prompt for taxable
     // prompt for revenue group
     // prompt for details
 }
Example #3
0
 public FixedBoxItem(Form parent, UIHandler.UpdateDelegate updater, Item item, Point location, Size size)
     : base(parent, updater, item, location, size)
 {
     // prompt for quantity
     this.priceEach = item.Price;
     this.taxable   = item.Taxable;
     // prompt for revenue group
     // prompt for details
 }
Example #4
0
 public VarBoxItem(Form parent, UIHandler.UpdateDelegate updater, Item item, Point location, Size size)
     : base(parent, updater, item, location, size)
 {
     // quantity is fixed at 1
     // prompt for price
     this.taxable = item.Taxable;
     // prompt for revenue group to override passed in
     this.revenueGroup = item.RevenueGroup;
     // prompt for details
 }
Example #5
0
        public ItemButtonManager(Form parent, UIHandler.UpdateDelegate updater, Size buttonSize, Point buttonSpacing, Point upperLeft)
        {
            this.parent  = parent;
            this.updater = updater;

            this.buttonSize    = buttonSize;
            this.buttonSpacing = buttonSpacing;
            this.upperLeft     = upperLeft;

            this.buttonsPerColumn = (parent.Height - (2 * upperLeft.Y)) / buttonSpacing.Y;
        }
Example #6
0
        public ItemButton(Form parent, UIHandler.UpdateDelegate updater, Item item, Point location, Size size)
        {
            this.parent  = parent;
            this.updater = updater;

            this.listDiscountGroups = item.Discounts;

            this.button           = new UniformButton();
            this.button.Parent    = this.parent;
            this.button.Text      = item.Name;
            this.button.Location  = location;
            this.button.Size      = size;
            this.button.BackColor = item.Color;
            this.button.Enabled   = false;
            this.button.Font      = new Font(this.button.Font.FontFamily, this.button.Font.Size * 1.2f, FontStyle.Bold);
            this.button.Click    += new EventHandler(ButtonOnClick);

            this.button.Show();
        }