private DataPropertyCollectionChangeOperation(DataPropertyCollectionChangeAction action, int index, int movingIndex, DataPropertyCollectionValueContext <T> settingValue = null) { Action = action; Index = index; MovingIndex = movingIndex; SettingValue = settingValue; }
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)); }
private DataPropertyCollectionChangeOperation(DataPropertyCollectionChangeAction action, int index, DataPropertyCollectionValueContext <T> settingValue = null) : this(action, index, -1, settingValue) { SettingValue = settingValue; }
internal static DataPropertyCollectionChangeOperation <T> Insert(int index, DataProperty <T> property) { var settingValue = new DataPropertyCollectionValueContext <T>(property); return(new DataPropertyCollectionChangeOperation <T>(DataPropertyCollectionChangeAction.Insert, index, settingValue)); }