private void paintFloor() { for (int i = 1; i < 41; i++) { UC.UCTable ucTable = new UC.UCTable(); ucTable.lbTableNo.Text = i.ToString(); ucTable.Click += ucTable_Click; flowLayoutPanel1.Controls.Add(ucTable); } }