private void OnAddClicked(object sender, EventArgs args) { var chi = new HashSet <string>(); foreach (var s in webTGroup.SelectedItems) { chi.Add(s); } foreach (var s in finTGroup.SelectedItems) { chi.Add(s); } DictService.AddWord(word.Text.ToLower(), chi); }
private void OnAddClicked(object sender, TappedRoutedEventArgs args) { var chi = new HashSet <string>(); foreach (var s in webTGroup.SelectedItems) { chi.Add(s); } foreach (var s in finTGroup.SelectedItems) { chi.Add(s); } try { DictService.AddWord(word.Text.ToLower(), chi); } catch (Exception e) { e.CopeWith("Add Word"); } }