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

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

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