private void editSelectedDictKey(PDFDict selectedDict, object newValue) { updateDictionaryKey(selectedDict, newValue.ToString(), oldValueInDataGridCell.ToString()); //refresh the tree selectedDict.EnumPDFObjects(new EnumObjectsForTree(selectedNodeBeforeEdit)); mainWindow.expandNode(selectedNodeBeforeEdit); }
private void editSelectedDictValue(PDFDict selectedDict, string key, object newValue) { PDFObject newPDFObject = createNewValueForSelectedScalar(selectedDict.Get(key), newValue.ToString()); updateDictionaryValue(selectedDict, key, newPDFObject); //refresh the tree selectedDict.EnumPDFObjects(new EnumObjectsForTree(selectedNodeBeforeEdit)); mainWindow.expandNode(selectedNodeBeforeEdit); }