public void AppendWord(WordModel word) { if (string.IsNullOrEmpty(NewData.FirstWord)) NewData.FirstWord = word.Word; else NewData.SecondWord = word.Word; }
public WordsListViewModel() { Words = new ObservableCollection<WordModel>(); SelectedItem = new WordModel(); }
public void AppendWord(WordModel word) { SongSearch.Text = string.IsNullOrEmpty(SongSearch.Text) ? word.Word : $"{SongSearch.Text} {word.Word}"; }
public override void WordDoubleClicked(WordModel word) { (DataContext as GlobalViewModel).AppendWord(word); }
public void AppendWord(WordModel word) { NewData.Word = word.Word; }
public abstract void WordDoubleClicked(WordModel word);