Exemple #1
0
 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;
 }
Exemple #2
0
        public void Redo()
        {
            dataRow[columnName] = newValue;
            TextBlock textBlock = GridCell.Content as TextBlock;

            if (textBlock != null)
            {
                textBlock.Text = newValue;
            }
            shortcutKeyMode = EditDataShortcutKeyMode.Undo;
        }