private void cbObjects_SelectedIndexChanged(object sender, EventArgs e) { switch (cbObjects.Text) { case "Объекты": CompleteForm.dgvDataBaseObjects(this); break; case "Коллекции": CompleteForm.dgvDataBaseCollections(this); break; case "Пользователи": CompleteForm.dgvDataBaseUsers(this); break; default: break; } }