private void SetSelectedItem() { if (SelectedClient != null) { OnItemSelected(new ItemSelectedEventArgs(SelectedClient?.orderCustomer)); } FindString = ""; FindTextCollection.Clear(); }
public ToGoClientFinderViewModel() { this.WhenAnyValue(a => a.FindString).Subscribe(_ => UpdateFindResults()); ClearCommand = new DelegateCommand(_ => { FindString = ""; FindTextCollection.Clear(); } ); SelectItemCommand = new DelegateCommand(_ => { SetSelectedItem(); } ); }