예제 #1
0
 public static void ItemIndexDecrement <T>(this NotifiableCollection <T> collection, T item, int count = 1)
 {
     if (collection != null)
     {
         collection.Move(collection.IndexOf(item), count);
     }
 }
예제 #2
0
 public static void ItemIndexIncrement <T>(this NotifiableCollection <T> collection, int oldIndex, int count = 1)
 {
     collection.Move(oldIndex, oldIndex + count);
 }