Exemple #1
0
        private async Task CallListLoad()
        {
            SubList.Clear();

            // Android "Amimations can only be run on looper threads" when the _isForegroundAwait/notThreaded parameter is true
            // Or it just hangs
            // await FakeStringService.LoadOneList(SubList, _listNum, _isForegroundAwait, (returnList) =>
            await FakeStringService.LoadOneList(SubList, _listNum, false, (returnList) =>
            {
                SubList = returnList;
                PopulationCompleted?.Invoke();
            }).WithoutChangingContext();
        }
Exemple #2
0
        public App()
        {
            var appSetup = new FormsContainerSetup();

            AppContainer.GlobalVariableContainer = appSetup.CreateContainer();

            InitializeComponent();

            FakeStringService.Init();

            // MainPage = new MyPage { BindingContext = new MyViewModel() };
            // MainPage = new MyPage { BindingContext = new MyDeviceViewModel() };
            var foregroundViewModel = new BalloonListCollectionViewModel(true);
            var taskRunViewModel    = new BalloonListCollectionViewModel(false);

            MainPage = new Views.Pages.BalloonsAndListsPage {
                BindingContext = new BalloonsAndListsViewModel(foregroundViewModel, taskRunViewModel)
            };
        }