コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }