Example #1
0
        private void btnActMoveUp_Click(object sender, RoutedEventArgs e)
        {
            MySelectableListItem sel = lstAct.CurrentlySelected;

            if (sel != null)
            {
                lstAct.MoveItemUp(sel);
            }
        }
Example #2
0
        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;
            }
        }