private void btnActMoveUp_Click(object sender, RoutedEventArgs e) { MySelectableListItem sel = lstAct.CurrentlySelected; if (sel != null) { lstAct.MoveItemUp(sel); } }
private void btnMoveUp_Click(object sender, RoutedEventArgs e) { MySelectableListItem sel = lstTriggers.CurrentlySelected; if (sel != null) { lstTriggers.MoveItemUp(sel); Trigger trigger = ((object[])sel.CustomData)[1] as Trigger; Triggers.MoveUp(trigger); UnsavedChanges = true; } }