public void EndEdit() { if (!inEdit) { return; } inEdit = false; backTitle = null; backMemo = null; backSelectedDiffOptions.Clear(); CompareFormVM parent = (CompareFormVM)Parent; parent.UpdateModel(); Memorize(); }