public void SetEditMode() { currentWord = wordRepository.GetById(ClientId); if (ViewMode == ViewMode.Edit && currentWord != null) { NewWord = currentWord.Word; WordMeaning = currentWord.Meaning; Note = currentWord.Note; Example = currentWord.Example; Collocation = currentWord.Collocation; Synonym = currentWord.Synonym; Antonym = currentWord.Antonym; WordFormation = currentWord.WordFormation; WordType = currentWord.WordType - 1; } }