private void getDatabases(Profil testProfil) { MysqlHandler TestConnect = new MysqlHandler(testProfil); List <string> shematas = TestConnect.getDataBases(); tableListBox.Items.Clear(); if (shematas != null) { for (int i = 0; i < shematas.Count; i++) { tableListBox.Items.Add(shematas[i]); } tableListBox.Visible = true; } }