public ListViewNewItemCreateUndoUnit(ResXEditorControl control, ListViewKeyItem item, KeyValueIdentifierConflictResolver conflictResolver) { if (control == null) { throw new ArgumentNullException("control"); } if (item == null) { throw new ArgumentNullException("item"); } if (conflictResolver == null) { throw new ArgumentNullException("conflictResolver"); } this.Item = item; RemoveUnit = new ListViewRemoveItemsUndoUnit(control, new List <ListViewKeyItem>() { item }, conflictResolver); }
public ListViewItemsAddUndoUnit(ResXEditorControl control, List <ListViewKeyItem> items, KeyValueIdentifierConflictResolver conflictResolver) { if (control == null) { throw new ArgumentNullException("control"); } if (items == null) { throw new ArgumentNullException("items"); } if (conflictResolver == null) { throw new ArgumentNullException("conflictResolver"); } this.Items = items; // create the reverse unit RemoveUnit = new ListViewRemoveItemsUndoUnit(control, items, conflictResolver); }
public GridRowAddUndoUnit(ResXEditorControl control, List <ResXStringGridRow> rows, AbstractResXEditorGrid grid, KeyValueIdentifierConflictResolver conflictResolver) { if (control == null) { throw new ArgumentNullException("control"); } if (grid == null) { throw new ArgumentNullException("grid"); } if (rows == null) { throw new ArgumentNullException("rows"); } if (conflictResolver == null) { throw new ArgumentNullException("conflictResolver"); } this.Rows = rows; this.Grid = grid; this.ConflictResolver = conflictResolver; this.Control = control; }
public ListViewRemoveItemsUndoUnit(ResXEditorControl control, List <ListViewKeyItem> items, KeyValueIdentifierConflictResolver conflictResolver) { if (control == null) { throw new ArgumentNullException("control"); } if (items == null) { throw new ArgumentNullException("items"); } if (conflictResolver == null) { throw new ArgumentNullException("conflictResolver"); } this.Items = items; this.ConflictResolver = conflictResolver; this.Control = control; }
public RemoveStringsUndoUnit(ResXEditorControl control, List <ResXStringGridRow> elements, AbstractResXEditorGrid grid, KeyValueIdentifierConflictResolver conflictResolver) { if (control == null) { throw new ArgumentNullException("control"); } if (elements == null) { throw new ArgumentNullException("elements"); } if (grid == null) { throw new ArgumentNullException("grid"); } if (conflictResolver == null) { throw new ArgumentNullException("conflictResolver"); } this.Elements = elements; this.Grid = grid; this.ConflictResolver = conflictResolver; this.Control = control; }