private POSPanel CreateNamePanel() { POSPanel namePanel = new POSPanel(); namePanel.Name = NAME_PANEL; namePanel.Dock = DockStyle.Left; namePanel.BackColor = Color.Transparent; namePanel.Width = Convert.ToInt32(Math.Floor(ColumnWidth.NAME * (ItemWidth - ColumnWidth.NUMBER))); return namePanel; }
private POSPanel CreateAmountPanel() { POSPanel amountPanel = new POSPanel(); amountPanel.Name = AMOUNT_PANEL; amountPanel.Dock = DockStyle.Left; amountPanel.BackColor = Color.Transparent; amountPanel.Width = Convert.ToInt32(Math.Floor(ColumnWidth.AMOUNT * (ItemWidth - ColumnWidth.NUMBER))); amountPanel.BorderStyle = BorderStyle.None; return amountPanel; }