private void LabelPropertyChanged() { if (undoRedo == false) { UndoRedoItem undoRedoItem = new UndoRedoItem(); undoRedoItem.dlgName = tableName; undoRedoItem.undoRedoStatus = UndoRedoStatus.New; undoRedoItem.newValue = currentValue; undoRedoItem.oldValue = oldValue; UndoRedo.AddItem(undoRedoItem); } }