private void actionListView_Reordered(object sender, ListViewReorderedEventArgs e) { Action aTemp = editor.TaskDefinition.Actions[e.OldIndex].Clone() as Action; editor.TaskDefinition.Actions.RemoveAt(e.OldIndex); editor.TaskDefinition.Actions.Insert(e.NewIndex, aTemp); }
void actionListView_Reordered(object sender, ListViewReorderedEventArgs e) { Action aTemp = editor.TaskDefinition.Actions[e.OldIndex].Clone() as Action; editor.TaskDefinition.Actions.RemoveAt(e.OldIndex); editor.TaskDefinition.Actions.Insert(e.NewIndex, aTemp as Action); }