Example #1
0
        public void ElementUpdated(TranslatableItem element, string newValue, bool isGtran)
        {
            if (element.Translate == newValue)
            {
                return;
            }

            UndoRedoManager.Add(new EditableElement(element, newValue));
            element.UpdateTranslate(newValue, isGtran);
            HasChanges = true;
        }
Example #2
0
 public string ElementReset(TranslatableItem element)
 {
     return(element.ResetTranslate());
 }