コード例 #1
0
 private DataPropertyCollectionChangeOperation(DataPropertyCollectionChangeAction action, int index, int movingIndex, DataPropertyCollectionValueContext <T> settingValue = null)
 {
     Action       = action;
     Index        = index;
     MovingIndex  = movingIndex;
     SettingValue = settingValue;
 }
コード例 #2
0
        internal static DataPropertyCollectionChangeOperation <T> Set(int index, T oldValue, T inputValue, DataProperty <T> property)
        {
            var settingValue = new DataPropertyCollectionValueContext <T>(oldValue, inputValue, property);

            return(new DataPropertyCollectionChangeOperation <T>(DataPropertyCollectionChangeAction.Set, index, settingValue));
        }
コード例 #3
0
 private DataPropertyCollectionChangeOperation(DataPropertyCollectionChangeAction action, int index, DataPropertyCollectionValueContext <T> settingValue = null)
     : this(action, index, -1, settingValue)
 {
     SettingValue = settingValue;
 }
コード例 #4
0
        internal static DataPropertyCollectionChangeOperation <T> Insert(int index, DataProperty <T> property)
        {
            var settingValue = new DataPropertyCollectionValueContext <T>(property);

            return(new DataPropertyCollectionChangeOperation <T>(DataPropertyCollectionChangeAction.Insert, index, settingValue));
        }