public ListViewModel(IMarketPriceService marketPriceService, IActualPriceService actualPriceService) { _marketPriceService = marketPriceService; _actualPriceService = actualPriceService; LoadDataCommand = new Command(LoadDataExecuteCommand); LoadDataExecuteCommand(); }
public MainVieWModel(IActualPriceService actualPriceService, IMarketPriceService marketPriceService) { _actualPriceService = actualPriceService; _marketPriceService = marketPriceService; IsBusy = false; ErrorMessage = false; LoadDataCommand = new Command(async() => await LoadDataExecuteCommand()); MessagingCenter.Subscribe <MainPage>(this, LOAD_DATA, async(sender) => { await LoadDataExecuteCommand(); }); }