public EditDataChange(string originalValue, string newValue, string columnName, string featureID, DataGridCell gridCell, DataRow dataRow) { this.originalValue = originalValue; this.newValue = newValue; this.columnName = columnName; this.featureID = featureID; this.gridCell = gridCell; this.dataRow = dataRow; shortcutKeyMode = EditDataShortcutKeyMode.Undo; }
public void Redo() { dataRow[columnName] = newValue; TextBlock textBlock = GridCell.Content as TextBlock; if (textBlock != null) { textBlock.Text = newValue; } shortcutKeyMode = EditDataShortcutKeyMode.Undo; }