private void MacroCommands_MouseDoubleClick(object sender, EventArgs e) { MacroActionEditor edit = new MacroActionEditor(); ListViewItem item = MacroCommands.SelectedItems[0]; edit.Init(item); edit.Location = System.Windows.Forms.Control.MousePosition; if (edit.ShowDialog() == DialogResult.OK) { item = edit.GetListViewItem(); MacroCommands.Items[MacroCommands.SelectedIndices[0]] = item; ValidateMacroTiming(); } MacroCommands.Invalidate(); }