Пример #1
0
        async void PopulateSecretFilesList()
        {
            LoadingIndicatorView.StartAnimating();

            //fetch secret files from server
            var SecretFilesSource =
                await GlobalVars.CloudDB.GetGroupItemsAsync();

            //GenerateTestData();

            var background = "backgrounds/background.png";            //for testing

            foreach (var secret in SecretFilesSource)
            {
                secret.groupImage = background;
            }

            LoadingIndicatorView.StopAnimating();

            //add SecretFile views into scrollview
            if (SecretFilesSource != null && SecretFilesSource.Count > 0)
            {
                SetupScrollViewLayout(SecretFilesSource.Count);
                CreateSecretFileScrollView(SecretFilesSource);
            }
        }
Пример #2
0
        async Task LoadAllMessages()
        {
            LoadingIndicatorView.StartAnimating();

            AllPosts = await GlobalVars.CloudDB.GetPostItemsByGroupID(SecretFile.ID);

            AddMessagesToView(AllPosts);

            LoadingIndicatorView.StopAnimating();
        }