I want to assign buttons from the string array, is it possible? I have tried:
private void label1_TextChanged(object sender, EventArgs e)
{
searchedModels = LabelPaieskaText.Split(',');
for (int i = 0; i < searchedModels.Count(); i++)
{
$"{btn_search} + {i + 1}".Text = searchedModels[i]; // this is the problem
}
}