Table load complete. Printer stub removed for actual code.

This commit is contained in:
unknown
2011-01-14 01:51:02 +05:30
parent c63bc62304
commit 76cd512ebc
16 changed files with 230 additions and 29 deletions

View File

@ -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);