Table load complete. Printer stub removed for actual code.
This commit is contained in:
@ -99,7 +99,7 @@ namespace Tanshu.Accounts.Helpers
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void GenerateButtons(ref Panel panel, ref List<Button> buttonList, Rectangle clientArea, int x, int y, int border, List<FoodTableBO> list, ButtonClickDelegate bcDelegate)
|
||||
public static void GenerateTables(ref Panel panel, ref List<Button> buttonList, Rectangle clientArea, int x, int y, int border, List<FoodTableBO> list, ButtonClickDelegate bcDelegate)
|
||||
{
|
||||
if (buttonList.Count != 0)
|
||||
{
|
||||
@ -121,7 +121,6 @@ namespace Tanshu.Accounts.Helpers
|
||||
if (list.Count < count)
|
||||
break;
|
||||
left = clientArea.Left + (i * (width + border));
|
||||
//ProductTypeBO item = list[(j * x) + i];
|
||||
FoodTableBO item = list[count - 1];
|
||||
Button btn = GetButton(string.Format("{0}-{1}", i, j), item.Name, width, height, left, top, item.TableID, bcDelegate);
|
||||
panel.Controls.Add(btn);
|
||||
|
||||
Reference in New Issue
Block a user