void Handle(Input.Down action) { if (Data != null) { SortableListPage sortableList = new SortableListPage(); sortableList.Down(Data); } }
void Handle(Input.Down action) { int idx = (int)this.index; Debug.WriteLine(idx); if (this.Persons == null) { return; } var tmp = Persons[idx + 1]; Db.Transact(() => { Persons[idx + 1].Rank--; Persons[idx].Rank++; Persons[idx + 1] = Persons[idx]; Persons[idx] = tmp; }); }