Beispiel #1
0
 /// <summary>
 /// Update reorder buttons based on selections
 /// </summary>
 private void UpdateReorderButtons()
 {
     if (lvRight.SelectedItems.Count == 0)
     {
         btnMoveUp.IsEnabled   = false;
         btnMoveDown.IsEnabled = false;
     }
     else
     {
         btnMoveUp.IsEnabled   = lvRight.SelectedItems.Contains(SelectedList[0]) ? false : true;
         btnMoveDown.IsEnabled = lvRight.SelectedItems.Contains(SelectedList.Last()) ? false : true;
     }
 }