public void DiscardChanges() { if ("".Equals(TaggedValueGUID)) { //no changes have been saved to the repository, its a fresh history entry } else { IEARepository repository = EAMain.Repository; //should not happen, need to know where the History Entry should be loaded from. if (null == Decision) { throw new Exception(); } IEAElement element = repository.GetElementByGUID(Decision.GUID); IEATaggedValue taggedValue = element.GetTaggedValueByGUID(TaggedValueGUID); Deserialize(taggedValue.Value); } }