Exemple #1
0
        public DailyEntryPageModel()
        {
            MetersViewModel = new MetersViewModel();
            TanksViewModel  = new TanksViewModel();

            TanksViewModel.IsVisible = true;
        }
Exemple #2
0
        public void Load()
        {
            Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
            {
                if (TanksViewModel.IsVisible)
                {
                    TanksViewModel.Load();
                }

                if (MetersViewModel.IsVisible)
                {
                    MetersViewModel.Load();
                }
            });
        }