Beispiel #1
0
 private bool CanMoveDown()
 {
     if (SelectedInstallGroupMod != null)
     {
         var index = ModsInGroup.IndexOf(SelectedInstallGroupMod);
         if (index < ModsInGroup.Count - 1)
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
 private void MoveUp()
 {
     if (SelectedInstallGroupMod != null)
     {
         var mod      = SelectedInstallGroupMod;
         var oldIndex = ModsInGroup.IndexOf(SelectedInstallGroupMod);
         var newIndex = oldIndex - 1;
         ModsInGroup.RemoveAt(oldIndex);
         ModsInGroup.Insert(newIndex, mod);
         SelectedInstallGroupMod = mod;
     }
 }
Beispiel #3
0
 private bool CanMoveUp()
 {
     if (SelectedInstallGroupMod != null)
     {
         var index = ModsInGroup.IndexOf(SelectedInstallGroupMod);
         if (index > 0)
         {
             return(true);
         }
     }
     return(false);
 }