Пример #1
0
 public void AppendWord(WordModel word)
 {
     if (string.IsNullOrEmpty(NewData.FirstWord))
         NewData.FirstWord = word.Word;
     else
         NewData.SecondWord = word.Word;
 }
Пример #2
0
 public WordsListViewModel()
 {
     Words = new ObservableCollection<WordModel>();
     SelectedItem = new WordModel();
 }
Пример #3
0
 public void AppendWord(WordModel word)
 {
     SongSearch.Text = string.IsNullOrEmpty(SongSearch.Text)
         ? word.Word
         : $"{SongSearch.Text} {word.Word}";
 }
Пример #4
0
 public override void WordDoubleClicked(WordModel word)
 {
     (DataContext as GlobalViewModel).AppendWord(word);
 }
Пример #5
0
 public void AppendWord(WordModel word)
 {
     NewData.Word = word.Word;
 }
Пример #6
0
 public abstract void WordDoubleClicked(WordModel word);