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