Exemplo n.º 1
0
 public ListViewModel(IMarketPriceService marketPriceService, IActualPriceService actualPriceService)
 {
     _marketPriceService = marketPriceService;
     _actualPriceService = actualPriceService;
     LoadDataCommand     = new Command(LoadDataExecuteCommand);
     LoadDataExecuteCommand();
 }
Exemplo n.º 2
0
 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();
     });
 }