Esempio n. 1
0
        public DailyEntryPageModel()
        {
            MetersViewModel = new MetersViewModel();
            TanksViewModel  = new TanksViewModel();

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

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