Пример #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();
        }
        void ReleaseDesignerOutlets()
        {
            if (CameraButton != null)
            {
                CameraButton.Dispose();
                CameraButton = null;
            }

            if (ChatBackground != null)
            {
                ChatBackground.Dispose();
                ChatBackground = null;
            }

            if (ChatScrollView != null)
            {
                ChatScrollView.Dispose();
                ChatScrollView = null;
            }

            if (GalleryButton != null)
            {
                GalleryButton.Dispose();
                GalleryButton = null;
            }

            if (LoadingIndicatorView != null)
            {
                LoadingIndicatorView.Dispose();
                LoadingIndicatorView = null;
            }

            if (SendButton != null)
            {
                SendButton.Dispose();
                SendButton = null;
            }

            if (SmileyButton != null)
            {
                SmileyButton.Dispose();
                SmileyButton = null;
            }

            if (TextField != null)
            {
                TextField.Dispose();
                TextField = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CurrentSecretsScrollView != null)
            {
                CurrentSecretsScrollView.Dispose();
                CurrentSecretsScrollView = null;
            }

            if (InvitedLabel != null)
            {
                InvitedLabel.Dispose();
                InvitedLabel = null;
            }

            if (LoadingIndicatorView != null)
            {
                LoadingIndicatorView.Dispose();
                LoadingIndicatorView = null;
            }

            if (NewSecretButton != null)
            {
                NewSecretButton.Dispose();
                NewSecretButton = null;
            }

            if (Overview != null)
            {
                Overview.Dispose();
                Overview = null;
            }

            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }
        }
Пример #5
0
        public Editor(EditorOptions editorSettings,
                      IOptions <LoruleOptions> loruleOptions,
                      ILogger <Editor> logger,
                      LoadingIndicatorView loadingIndicator,
                      IServerContext loruleServerContext,
                      IServerConstants serverConstants,
                      IArchive archiveService,
                      IPaletteCollection paletteService, AreaBuilderView frmTileMaker)
        {
            _editorSettings      = editorSettings ?? throw new ArgumentNullException(nameof(editorSettings));
            _loruleOptions       = loruleOptions ?? throw new ArgumentNullException(nameof(loruleOptions));
            _logger              = logger ?? throw new ArgumentNullException(nameof(logger));
            _loadingIndicator    = loadingIndicator ?? throw new ArgumentNullException(nameof(loadingIndicator));
            _loruleServerContext = loruleServerContext ?? throw new ArgumentNullException(nameof(loruleServerContext));
            _serverConstants     = serverConstants ?? throw new ArgumentNullException(nameof(serverConstants));
            _archiveService      = archiveService ?? throw new ArgumentNullException(nameof(archiveService));
            _paletteService      = paletteService ?? throw new ArgumentNullException(nameof(paletteService));
            _frmTileMaker        = frmTileMaker;

            InitializeComponent();

            _logger.LogInformation("Editor Started.");
            _logger.LogInformation("Location: {0}", _editorSettings.Location);
        }