protected internal DataPropertyCollectionChangingEventArgs(IDataPropertyCollection dataProperty, DataPropertyCollectionChangeOperation <T> operation)
     : this(dataProperty, operation.Enumerate())
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// 交換操作の作成
 /// </summary>
 public DataPropertyCollectionChangeOperation <T> GenerateSwapOperation(int index0, int index1)
 {
     return(DataPropertyCollectionChangeOperation <T> .Swap(index0, index1));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 設定操作の作成
 /// </summary>
 public DataPropertyCollectionChangeOperation <T> GenerateSetOperation(int index, T value)
 {
     return(DataPropertyCollectionChangeOperation <T> .Set(index, Items[index].Value, value, Items[index]));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 削除操作の作成
 /// </summary>
 public DataPropertyCollectionChangeOperation <T> GenerateRemoveOperation(int index)
 {
     return(DataPropertyCollectionChangeOperation <T> .Remove(index));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 移動操作の作成
 /// </summary>
 public DataPropertyCollectionChangeOperation <T> GenerateMoveOperation(int oldIndex, int newIndex)
 {
     return(DataPropertyCollectionChangeOperation <T> .Move(oldIndex, newIndex));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 挿入操作の作成
 /// </summary>
 public DataPropertyCollectionChangeOperation <T> GenerateInsertOperation(int index, T value)
 {
     return(DataPropertyCollectionChangeOperation <T> .Insert(index, new DataProperty <T>(ItemPropertyName) { Value = value, }));
 }