private void editToolStripMenuItem_Click(object sender, EventArgs e) { ActionEntry action = lvActions.SelectedItems[0].Tag as ActionEntry; EditWin frm = new EditWin(action); frm.Actionentry = action; if (frm.ShowDialog() == DialogResult.OK) { action = frm.Actionentry; lvActions.SelectedItems[0].Tag = action; lvActions.SelectedItems[0].Text = action.X + "," + action.Y; lvActions.SelectedItems[0].SubItems[1].Text = action.Type.ToString(); lvActions.SelectedItems[0].SubItems[2].Text = action.Interval.ToString(); lvActions.SelectedItems[0].SubItems[3].Text = action.Text; } }