/// <summary> /// Shows the open file dialog allowing the user to browse for files to /// add to the selected component element. /// </summary> public void AddFiles() { using (OpenFileDialog dialog = CreateOpenFileDialog()) { if (dialog.ShowDialog() == DialogResult.OK) { editor.AddFiles(dialog.FileNames); } } }