private void btnEdit_Click(object sender, EventArgs e) { var pipeline = GetSelectedPipeline(); if (pipeline != null) { var editor = new PipelineEditor(); editor.SetPipeline(pipeline); editor.ShowDialog(); } }