Ejemplo n.º 1
0
        private async void NewRepository(EnumRepositoryEditorMode mode)
        {
            var repositoryEditorComponent = new RepositoryEditorComponent(Store);

            repositoryEditorComponent.EditorMode = mode;
            await repositoryEditorComponent.NewModel();

            var res = repositoryEditorComponent.RunModal();

            if (res.Entity == EComponentResult.Executed)
            {
                RefreshRepositoryAndFolderTree();
            }
        }
Ejemplo n.º 2
0
        public async void RemoveRepositoryLink()
        {
            if (SelectedServiceRef == null)
            {
                View.ShowInfo("There is no repository selected to remove.");
                return;
            }
            var repositoryEditorComponent = new RepositoryEditorComponent(Store);
            var res = await repositoryEditorComponent.DeleteModel(SelectedServiceRef.Service, SelectedServiceRef.IdServiceRef);

            if (res)
            {
                RefreshRepositoryAndFolderTree();
            }
        }
Ejemplo n.º 3
0
        public async void ManagmentRepository()
        {
            if (SelectedServiceRef == null)
            {
                View.ShowInfo("There is no repository selected to configure.");
                return;
            }
            var repositoryEditorComponent = new RepositoryEditorComponent(Store);

            repositoryEditorComponent.EditorMode = EnumRepositoryEditorMode.Managment;
            await repositoryEditorComponent.LoadModelById(SelectedServiceRef.Service, SelectedServiceRef.IdServiceRef, false);

            var res = repositoryEditorComponent.RunModal();

            if (res.Entity == EComponentResult.Executed)
            {
                // Do action
                RefreshRepositoryAndFolderTree();
            }
        }