Beispiel #1
0
        private void MoveBiomeDown(BiomeEditorItemViewModel item)
        {
            var currentIdx = Items.IndexOf(item);

            Items.RemoveAt(currentIdx);
            Items.Insert(currentIdx + 1, item);
        }
Beispiel #2
0
 private bool CanMoveBiomeUp(BiomeEditorItemViewModel item)
 {
     return(Items.IndexOf(item) != 0);
 }
Beispiel #3
0
 private bool CanMoveDownBiome(BiomeEditorItemViewModel item)
 {
     return(Items.IndexOf(item) < Items.Count - 1);
 }
Beispiel #4
0
 private void DeleteBiome(BiomeEditorItemViewModel item)
 {
     Items.Remove(item);
 }