/// <summary> /// /// </summary> /// <param name="up0">true: up, false: down</param> void moveItem(itemMoveDirections moveDirection0) { EpgAutoDataItem item_Src1 = listView_key.SelectedItem as EpgAutoDataItem; if (item_Src1 == null) { return; } int index_Src1 = resultList.IndexOf(item_Src1); int index_Dst1 = index_Src1 - 1; if (moveDirection0 == itemMoveDirections.down) { index_Dst1 = index_Src1 + 1; } if (0 <= index_Dst1 && index_Dst1 < resultList.Count) { EpgAutoDataItem item_Dst1 = resultList[index_Dst1]; this.moveItem(item_Src1, item_Dst1); } }
/// <summary> /// /// </summary> /// <param name="up0">true: up, false: down</param> void moveItem(itemMoveDirections moveDirection0) { EpgAutoDataItem item_Src1 = listView_key.SelectedItem as EpgAutoDataItem; if (item_Src1 == null) { return; } int index_Src1 = resultList.IndexOf(item_Src1); int index_Dst1 = index_Src1 - 1; if (moveDirection0 == itemMoveDirections.down) { index_Dst1 = index_Src1 + 1; } if (0 <= index_Dst1 && index_Dst1 < resultList.Count) { EpgAutoDataItem item_Dst1 = resultList[index_Dst1]; this.moveItem(item_Src1, item_Dst1); } }