示例#1
0
 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;
 }
示例#2
0
 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;
 }