private void cmd_edit_Click(object sender, EventArgs e) { if (lv_controls.SelectedItems.Count > 0) { var info = lv_controls.SelectedItems[0].Tag.ToString(); m_editor.showProperties(info); } }