private void ShowParameterForm(ISensor sensor) { ParameterForm form = new ParameterForm(); form.Parameters = sensor.Parameters; form.captionLabel.Text = sensor.Name; form.ShowDialog(); }