public DailyEntryPageModel() { MetersViewModel = new MetersViewModel(); TanksViewModel = new TanksViewModel(); TanksViewModel.IsVisible = true; }
public void Load() { Xamarin.Forms.Device.BeginInvokeOnMainThread(() => { if (TanksViewModel.IsVisible) { TanksViewModel.Load(); } if (MetersViewModel.IsVisible) { MetersViewModel.Load(); } }); }