private void buttonCommand_Click(object sender, EventArgs e) { var parameter = (ExtensionTypeParameter)((Command)sender).Tag; var ofd = new OpenFileDialog(); if (ofd.ShowDialog(_tableLayout) != DialogResult.Ok) { return; } // Update value _tableLayout.FindChild <TextBox>(parameter.Name).Text = ofd.FileName; parameter.Value = ofd.FileName; OnValueChanged(_tableLayout.FindChild <TextBox>(parameter.Name)); }