/// <summary> /// Generate the table /// </summary> public void GenerateTable() { // List all the tables foreach (var square in new SquareProcess().GetAll()) { foreach (var table in square.Tables) { Console.WriteLine("New table"); ListTables.Add(table); } } int i = 0; int y = 0; foreach (var table in ListTables) { table.TableLocation.posX = 48 + i; table.TableLocation.posY = 64 + y; i += 64; if (i == 384) { y = 64; i = 0; } } }
/// <summary> /// Generate the table /// </summary> public void GenerateTable() { // List all the tables foreach (var square in new SquareProcess().GetAll()) { foreach (var table in square.Tables) { ListTables.Add(table); } } int i = 0; int y = 0; foreach (var table in ListTables) { table.TableLocation.posX = 48 + i; table.TableLocation.posY = 384 + y; i += 48; if (i == 336) { y = 80; } } }