public CTableOrderForm() { InitializeComponent(); m_customerEditStatus = false; if (!isVatEnabled) { vat = 0.00; } lblOrderTotal.Text = String.Format("Sub Total: {0}", Program.currency); lblDiscount.Text = String.Format("Discount: {0}", Program.currency); lbltips.Text = String.Format("Service Charge: {0}", Program.currency); lbltotal.Text = String.Format("Total: {0}", Program.currency); lbvat.Text = String.Format("Vat: {0}", Program.currency); txtBoxSearchItem.ForeColor = Color.Gray; keyboardForm = new KeyBooardForm(); keyboardForm.Location = new Point(50, 380); keyboardForm.Size = new Size(740, 320); keyboardForm.Hide(); }
public CTableOrderForm(Int64 inOrderID, int inType, Int64 inTableNumber) { InitializeComponent(); if (!isVatEnabled) { vat = 0.00; } lblOrderTotal.Text = String.Format("Order Total: {0}", Program.currency); lblDiscount.Text = String.Format("Discount: {0}", Program.currency); lbltips.Text = String.Format("Service Charge: {0}", Program.currency); lbltotal.Text = String.Format("Total: {0}", Program.currency); lbvat.Text = String.Format("Vat Total: {0}", Program.currency); try { orderID = inOrderID; m_iTableNumber = inTableNumber; m_iType = inType; m_customerEditStatus = false; } catch (Exception exp) { Console.Write(exp.Message); } txtBoxSearchItem.ForeColor = Color.Gray; keyboardForm = new KeyBooardForm(); keyboardForm.Location = new Point(50, 380); keyboardForm.Size = new Size(740, 320); keyboardForm.Hide(); }