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 }
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 }
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 }
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 }
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; }
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(); }