public void OnDailySearchCommand(DailySearchModel obj) { _pagerCache.SearchObjValue = obj; _pagerCache.SearchType = SettingsData.Constants.TrackConst.SEARCH_BY_DAILYSEARCH; Pager.Reset(); GetResultByDailySearch(); }
protected virtual void OnDailySearch(DailySearchModel obj) { var handler = DailySearch; if (handler != null) { handler(obj); } }
public SearchDailyOrderVm(IReactiveDeliveryClient client) { _client = client; LstStores = new ReactiveList <ItemCatalog>(CatalogsClientModel.LstStores); StoreSelected = LstStores.Count > 0 ? LstStores[0] : null; LstAgents = new ReactiveList <ItemCatalog>(CatalogsClientModel.LstAgents); AgentSelected = LstAgents.Count > 0 ? LstAgents[0] : null; SearchCommand = ReactiveCommand.CreateAsyncTask(Observable.Return(true), _ => OnSearchCommand()); _dailySearchModel = new DailySearchModel(); }