/// <summary>
 /// 交換操作の作成
 /// </summary>
 public DataPropertyDictionaryChangeOperation <TKey, TValue> GenerateSwapOperation(int index0, int index1)
 {
     return(DataPropertyDictionaryChangeOperation <TKey, TValue> .Swap(index0, index1));
 }
        /// <summary>
        /// 設定操作の作成
        /// </summary>
        public DataPropertyDictionaryChangeOperation <TKey, TValue> GenerateSetOperation(int index, TKey key, TValue value)
        {
            var shell = Shells[index];

            return(DataPropertyDictionaryChangeOperation <TKey, TValue> .Set(index, shell.Key, shell.Core.Value, key, value, shell.Core));
        }
 /// <summary>
 /// 削除操作の作成
 /// </summary>
 public DataPropertyDictionaryChangeOperation <TKey, TValue> GenerateRemoveOperation(int index)
 {
     return(DataPropertyDictionaryChangeOperation <TKey, TValue> .Remove(index));
 }
 /// <summary>
 /// 移動操作の作成
 /// </summary>
 public DataPropertyDictionaryChangeOperation <TKey, TValue> GenerateMoveOperation(int oldIndex, int newIndex)
 {
     return(DataPropertyDictionaryChangeOperation <TKey, TValue> .Move(oldIndex, newIndex));
 }
 /// <summary>
 /// 挿入操作の作成
 /// </summary>
 public DataPropertyDictionaryChangeOperation <TKey, TValue> GenerateInsertOperation(int index, TKey key, TValue value)
 {
     return(DataPropertyDictionaryChangeOperation <TKey, TValue> .Insert(index, key, new DataProperty <TValue>(EvaluatePropertyName(key)) { Value = value, }));
 }
Exemplo n.º 6
0
 protected internal DataPropertyDictionaryChangingEventArgs(IDataPropertyDictionary dataProperty, DataPropertyDictionaryChangeOperation <TKey, TValue> operation)
     : this(dataProperty, operation.Enumerate())
 {
 }