Exemplo n.º 1
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            //important to register the setup before the lifetime subscription so it gets priority on events
            CommonTreeFunctionality.SetUp(
                RDMPCollection.Cohort,
                tlvCohortIdentificationConfigurations,
                Activator,
                olvName, //column with the icon
                olvName  //column that can be renamed

                );
            CommonTreeFunctionality.AxeChildren = new Type[] { typeof(CohortIdentificationConfiguration) };

            var dataExportChildProvider = activator.CoreChildProvider as DataExportChildProvider;

            if (dataExportChildProvider == null)
            {
                CommonTreeFunctionality.MaintainRootObjects = new Type[] { typeof(CohortIdentificationConfiguration) };
                tlvCohortIdentificationConfigurations.AddObjects(Activator.CoreChildProvider.AllCohortIdentificationConfigurations);
            }
            else
            {
                CommonTreeFunctionality.MaintainRootObjects = new Type[] { typeof(AllProjectCohortIdentificationConfigurationsNode), typeof(AllFreeCohortIdentificationConfigurationsNode) };
                tlvCohortIdentificationConfigurations.AddObject(dataExportChildProvider.AllProjectCohortIdentificationConfigurationsNode);
                tlvCohortIdentificationConfigurations.AddObject(dataExportChildProvider.AllFreeCohortIdentificationConfigurationsNode);
            }

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[] { new ExecuteCommandCreateNewCohortIdentificationConfiguration(a) };

            Activator.RefreshBus.EstablishLifetimeSubscription(this);
        }
Exemplo n.º 2
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;
            CommonTreeFunctionality.SetUp(
                RDMPCollection.Tables,
                tlvTableInfos,
                activator,
                olvColumn1,
                olvColumn1
                );

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[]
            {
                new ExecuteCommandCreateNewTableInfoByImportingExistingDataTable(a),
                new ExecuteCommandBulkImportTableInfos(a)
            };

            _activator.RefreshBus.EstablishLifetimeSubscription(this);


            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllDashboardsNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllRDMPRemotesNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllObjectSharingNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllPipelinesNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllExternalServersNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllDataAccessCredentialsNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllANOTablesNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllServersNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllConnectionStringKeywordsNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllStandardRegexesNode);
            tlvTableInfos.AddObject(_activator.CoreChildProvider.AllPluginsNode);
        }
Exemplo n.º 3
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;
            CommonTreeFunctionality.SetUp(RDMPCollection.SavedCohorts, tlvSavedCohorts, _activator, olvName, olvName);

            tlvSavedCohorts.AddObject(((DataExportChildProvider)_activator.CoreChildProvider).RootCohortsNode);
        }
Exemplo n.º 4
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);
            Activator.RefreshBus.EstablishLifetimeSubscription(this);

            CommonTreeFunctionality.SetUp(
                RDMPCollection.DataLoad,
                tlvLoadMetadata,
                activator,
                olvName,
                olvName);

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[] { new ExecuteCommandCreateNewLoadMetadata(a) };

            tlvLoadMetadata.AddObject(Activator.CoreChildProvider.AllPermissionWindowsNode);
            tlvLoadMetadata.AddObject(Activator.CoreChildProvider.AllLoadMetadatasNode);

            BuildCommandList();

            if (_isFirstTime)
            {
                CommonTreeFunctionality.SetupColumnTracking(olvName, new Guid("f84e8217-6b3c-4eb4-a314-fbd95b51c422"));
                CommonTreeFunctionality.SetupColumnTracking(olvValue, new Guid("facab93a-6950-4815-9f5f-5f076277adb5"));

                _isFirstTime = false;
            }
        }
Exemplo n.º 5
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;

            CommonTreeFunctionality.SetUp(
                RDMPCollection.DataExport,
                tlvDataExport,
                _activator,
                olvName,
                olvName
                );

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[]
            {
                new ExecuteCommandCreateNewDataExtractionProject(a),
                new ExecuteCommandCreateNewExtractableDataSetPackage(a)
            };

            CommonTreeFunctionality.MaintainRootObjects = new Type[] { typeof(ExtractableDataSetPackage), typeof(Project) };

            var dataExportChildProvider = activator.CoreChildProvider as DataExportChildProvider;

            if (dataExportChildProvider != null)
            {
                tlvDataExport.AddObjects(dataExportChildProvider.AllPackages);
                tlvDataExport.AddObjects(dataExportChildProvider.Projects);
            }

            NavigateToObjectUI.RecordThatTypeIsNotAUsefulParentToShow(typeof(ProjectCohortIdentificationConfigurationAssociationsNode));
        }
Exemplo n.º 6
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(
                RDMPCollection.DataExport,
                tlvDataExport,
                Activator,
                olvName,
                olvName
                );

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[]
            {
                new ExecuteCommandCreateNewDataExtractionProject(a),
                new ExecuteCommandCreateNewExtractableDataSetPackage(a)
            };

            CommonTreeFunctionality.MaintainRootObjects = new Type[] { typeof(ExtractableDataSetPackage), typeof(Project) };

            var dataExportChildProvider = activator.CoreChildProvider as DataExportChildProvider;

            if (dataExportChildProvider != null)
            {
                tlvDataExport.AddObjects(dataExportChildProvider.AllPackages);
                tlvDataExport.AddObjects(dataExportChildProvider.Projects);
            }

            SetupToolStrip();

            Activator.RefreshBus.EstablishLifetimeSubscription(this);
        }
Exemplo n.º 7
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(RDMPCollection.SavedCohorts, tlvSavedCohorts, Activator, olvName, olvName);

            tlvSavedCohorts.AddObject(((DataExportChildProvider)Activator.CoreChildProvider).RootCohortsNode);

            SetupToolStrip();

            Activator.RefreshBus.EstablishLifetimeSubscription(this);
        }
Exemplo n.º 8
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;
            CommonTreeFunctionality.SetUp(RDMPCollection.Favourites, tlvFavourites, _activator, olvName, olvName, new RDMPCollectionCommonFunctionalitySettings {
                AllowPinning = false
            });
            CommonTreeFunctionality.AxeChildren = new Type[] { typeof(CohortIdentificationConfiguration) };

            _activator.RefreshBus.EstablishLifetimeSubscription(this);

            RefreshFavourites();
        }
Exemplo n.º 9
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(RDMPCollection.SavedCohorts, tlvSavedCohorts, Activator, olvName, olvName);

            tlvSavedCohorts.AddObject(((DataExportChildProvider)Activator.CoreChildProvider).RootCohortsNode);

            SetupToolStrip();

            Activator.RefreshBus.EstablishLifetimeSubscription(this);

            CommonTreeFunctionality.SetupColumnTracking(olvName, new Guid("6857032b-4b28-4f92-8b38-f532f11c7a44"));
            CommonTreeFunctionality.SetupColumnTracking(olvVersion, new Guid("637fcb62-8395-4b36-a5ce-76ed3194b4e0"));
            CommonTreeFunctionality.SetupColumnTracking(olvProjectNumber, new Guid("8378f8cf-b08d-4656-a16e-760eed71fe3a"));
        }
Exemplo n.º 10
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;
            _activator.RefreshBus.EstablishLifetimeSubscription(this);

            CommonTreeFunctionality.SetUp(
                RDMPCollection.DataLoad,
                tlvLoadMetadata,
                activator,
                olvName,
                olvName);

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[] { new ExecuteCommandCreateNewLoadMetadata(a) };

            tlvLoadMetadata.AddObject(_activator.CoreChildProvider.AllPermissionWindowsNode);
            tlvLoadMetadata.AddObject(_activator.CoreChildProvider.AllLoadMetadatasNode);
        }
Exemplo n.º 11
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(RDMPCollection.Favourites, tlvFavourites, Activator, olvName, olvName, new RDMPCollectionCommonFunctionalitySettings {
                AllowPinning = false
            });
            CommonTreeFunctionality.AxeChildren = new Type[] { typeof(CohortIdentificationConfiguration) };
            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter =
                (a) => new IAtomicCommand[]
            {
                new ExecuteCommandAddFavourite(a),
                new ExecuteCommandClearFavourites(a)
            };
            Activator.RefreshBus.EstablishLifetimeSubscription(this);

            RefreshFavourites();
        }
Exemplo n.º 12
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(
                RDMPCollection.Tables,
                tlvTableInfos,
                activator,
                olvColumn1,
                olvColumn1
                );

            if (_isFirstTime)
            {
                CommonTreeFunctionality.SetupColumnTracking(olvDataType, new Guid("c743eab7-1c07-41dd-bb10-68b25a437056"));
                CommonTreeFunctionality.SetupColumnTracking(olvValue, new Guid("157fde35-d084-42f6-97d1-13a00ba4d0c1"));
                CommonTreeFunctionality.SetupColumnTracking(olvColumn1, new Guid("3743e6dd-4166-4f71-b42f-c80ccda1446d"));
                _isFirstTime = false;;
            }


            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[]
            {
                new ExecuteCommandImportTableInfo(a, null, false),
                new ExecuteCommandBulkImportTableInfos(a)
            };

            Activator.RefreshBus.EstablishLifetimeSubscription(this);


            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllDashboardsNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllRDMPRemotesNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllObjectSharingNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllPipelinesNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllExternalServersNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllDataAccessCredentialsNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllANOTablesNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllServersNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllConnectionStringKeywordsNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllStandardRegexesNode);
            tlvTableInfos.AddObject(Activator.CoreChildProvider.AllPluginsNode);
        }
Exemplo n.º 13
0
        public override void SetItemActivator(IActivateItems activator)
        {
            base.SetItemActivator(activator);

            CommonTreeFunctionality.SetUp(
                RDMPCollection.DataExport, 
                tlvDataExport,
                Activator,
                olvName,
                olvName
                );

            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter =(a)=> new IAtomicCommand[]
            {
                new ExecuteCommandCreateNewDataExtractionProject(a),
                new ExecuteCommandCreateNewExtractableDataSetPackage(a)
            };
            
            CommonTreeFunctionality.MaintainRootObjects = new Type[]{typeof(ExtractableDataSetPackage),typeof(Project)};

            var dataExportChildProvider = activator.CoreChildProvider as DataExportChildProvider;

            if(dataExportChildProvider != null)
            {
                tlvDataExport.AddObjects(dataExportChildProvider.AllPackages);
                tlvDataExport.AddObjects(dataExportChildProvider.Projects);
            }
            
            if (_isFirstTime)
            {
                CommonTreeFunctionality.SetupColumnTracking(olvName, new Guid("00a384ce-08fa-43fd-9cf3-7ddbbf5cec1c"));
                CommonTreeFunctionality.SetupColumnTracking(olvProjectNumber, new Guid("2a1764d4-8871-4488-b068-8940b777f90e"));
                CommonTreeFunctionality.SetupColumnTracking(olvCohortSource, new Guid("c4dabcc3-ccc9-4c9b-906b-e8106e8b616c"));
                CommonTreeFunctionality.SetupColumnTracking(olvCohortVersion, new Guid("2d0f8d32-090d-4d2b-8cfe-b6d16f5cc419"));
                _isFirstTime = false;
            }

            SetupToolStrip();

            Activator.RefreshBus.EstablishLifetimeSubscription(this);

        }
Exemplo n.º 14
0
    public override void SetItemActivator(IActivateItems activator)
    {
        base.SetItemActivator(activator);

        //important to register the setup before the lifetime subscription so it gets priority on events
        CommonTreeFunctionality.SetUp(
            RDMPCollection.Cohort,
            tlvCohortIdentificationConfigurations,
            Activator,
            olvName, //column with the icon
            olvName  //column that can be renamed

            );
        CommonTreeFunctionality.AxeChildren = new[] { typeof(CohortIdentificationConfiguration) };

        if (activator.CoreChildProvider is not DataExportChildProvider dataExportChildProvider)
        {
            CommonTreeFunctionality.MaintainRootObjects = new[] { typeof(CohortIdentificationConfiguration) };
            tlvCohortIdentificationConfigurations.AddObjects(Activator.CoreChildProvider.AllCohortIdentificationConfigurations);
        }
Exemplo n.º 15
0
        public override void SetItemActivator(IActivateItems activator)
        {
            _activator = activator;

            _activator.Emphasise += _activator_Emphasise;

            //important to register the setup before the lifetime subscription so it gets priority on events
            CommonTreeFunctionality.SetUp(
                RDMPCollection.Catalogue,
                tlvCatalogues,
                _activator,
                olvColumn1, //the icon column
                //we have our own custom filter logic so no need to pass tbFilter
                olvColumn1  //also the renameable column
                );

            CommonTreeFunctionality.MaintainRootObjects = new[]
            {
                typeof(AllGovernanceNode)
            };

            //Things that are always visible regardless
            CommonTreeFunctionality.WhitespaceRightClickMenuCommandsGetter = (a) => new IAtomicCommand[]
            {
                new ExecuteCommandCreateNewCatalogueByImportingFile(a),
                new ExecuteCommandCreateNewCatalogueByImportingExistingDataTable(a),
                new ExecuteCommandCreateNewEmptyCatalogue(a)
            };

            _activator.RefreshBus.EstablishLifetimeSubscription(this);

            tlvCatalogues.AddObject(activator.CoreChildProvider.AllGovernanceNode);
            tlvCatalogues.AddObject(CatalogueFolder.Root);
            ApplyFilters();

            RefreshUIFromDatabase(CatalogueFolder.Root);
        }
Exemplo n.º 16
0
        public void RefreshUIFromDatabase(object oRefreshFrom)
        {
            if (tlvCatalogues.ModelFilter is CatalogueCollectionFilter f)
            {
                f.ChildProvider = Activator.CoreChildProvider;
            }

            //if there are new catalogues we don't already have in our tree
            if (_allCatalogues != null)
            {
                var newCatalogues = CommonTreeFunctionality.CoreChildProvider.AllCatalogues.Except(_allCatalogues);
                if (newCatalogues.Any())
                {
                    oRefreshFrom = CatalogueFolder.Root;//refresh from the root instead
                    tlvCatalogues.RefreshObject(oRefreshFrom);
                }
            }

            _allCatalogues = CommonTreeFunctionality.CoreChildProvider.AllCatalogues;

            if (isFirstTime)
            {
                CommonTreeFunctionality.SetupColumnTracking(olvColumn1, new Guid("1d912137-22ab-4536-b40b-bd984e27dc7a"));
                CommonTreeFunctionality.SetupColumnTracking(olvOrder, new Guid("0d8e6e49-03ae-48f2-9bf8-acc5107f65f8"));
                CommonTreeFunctionality.SetupColumnTracking(olvFilters, new Guid("c4c9b2ac-c9b5-4d23-b06d-d1f55013b4e9"));

                CommonFunctionality.Add(new ExecuteCommandCreateNewCatalogueByImportingFileUI(Activator), GlobalStrings.FromFile, null, "New...");
                CommonFunctionality.Add(new ExecuteCommandCreateNewCatalogueByImportingExistingDataTable(Activator), GlobalStrings.FromDatabase, null, "New...");
            }

            if (isFirstTime || Equals(oRefreshFrom, CatalogueFolder.Root))
            {
                tlvCatalogues.RefreshObject(CatalogueFolder.Root);
                tlvCatalogues.Expand(CatalogueFolder.Root);
                isFirstTime = false;
            }
        }