public void completeTvsItem(string table) { List <String> titles = new List <String>(); List <double> screenDiagonal = new List <double>(); List <String> resolution = new List <String>(); List <String> features = new List <String>(); List <int> price = new List <int>(); List <int> quantity = new List <int>(); workServerOnMainInterface.createInfoTvsArray(table, ref titles, ref screenDiagonal, ref resolution, ref features, ref price, ref quantity); if (titles.Count == screenDiagonal.Count && titles.Count == resolution.Count && titles.Count == features.Count && titles.Count == price.Count && titles.Count == quantity.Count) { flowLayoutPanel.Controls.Clear(); manageTvs = new ManageTvs(); for (int i = 0; i < titles.Count; i++) { string[] quantityCombo = new string[quantity[i] + 1]; for (int j = 0; j < quantityCombo.Length; j++) { quantityCombo[j] = (j).ToString(); } manageTvs.createTvs(titles[i], screenDiagonal[i], resolution[i], features[i], price[i], quantity[i], quantityCombo, basketItems, table); } for (int i = 0; i < manageTvs.getAllTvs().Count; i++) { flowLayoutPanel.Controls.Add(manageTvs.getAllTvs()[i]); } } }