コード例 #1
0
        private void BuildHelpFlow()
        {
            var tracker = new TutorialTracker(Activator);

            HelpWorkflow = new HelpWorkflow(this, _command, tracker);

            //////Normal work flow
            var pickFile = new HelpStage(gbPickFile, "1. Choose the file you want to import here.\r\n" +
                                         "\r\n" +
                                         "Click on the red icon to disable this help.");
            var pickDb = new HelpStage(gbPickDatabase, "2. Select the database to use for importing data.\r\n" +
                                       "Username and Password are optional; if not set, the connection will be attempted using your windows user");
            var pickName = new HelpStage(gbTableName, "3. Select the name of the created Catalogue.\r\n" +
                                         "A Table with the same name will be created in the database selected above.\r\n" +
                                         "Please note that the chosen pipeline can alter the created Table name. If a table with the same name already exists " +
                                         "in the selected Database, the execution may fail.");
            var pickPipeline = new HelpStage(gbPickPipeline, "4. Select the pipeline to execute in order to transfer the data from the files into the DB.\r\n" +
                                             "If you are not sure, ask the admin which one to use.");
            var execute = new HelpStage(gbExecute, "5. Click Preview to peek at what data is in the selected file.\r\n" +
                                        "Click Execute to run the process and import your file.");

            pickFile.SetOption(">>", pickDb);
            pickDb.SetOption(">>", pickName);
            pickName.SetOption(">>", pickPipeline);
            pickPipeline.SetOption(">>", execute);
            execute.SetOption("|<<", pickFile);
            //stage4.SetOption("next...", stage2);

            HelpWorkflow.RootStage = pickFile;
        }
コード例 #2
0
        private void BuildHelpFlow()
        {
            var tracker = new TutorialTracker(Activator);

            HelpWorkflow = new HelpWorkflow(this, _command, tracker);

            //////Normal work flow
            var root = new HelpStage(gbPickFile, "Choose the file you want to import here.\r\n" +
                                     "\r\n" +
                                     "Click on the red icon to disable this help.");
            var stage2 = new HelpStage(gbPickDatabase, "Select the database to use for importing data.\r\n" +
                                       "Username and Password are optional; if not set, the connection will be attempted using your windows user");
            var stage3 = new HelpStage(gbPickPipeline, "Select the pipeline to execute in order to transfer the data from the files into the DB.\r\n" +
                                       "If you are not sure, ask the admin which one to use or click 'Advanced' to go into the advanced pipeline UI.");
            var stage4 = new HelpStage(gbExecute, "Click Preview to peek at what data is in the selected file.\r\n" +
                                       "Click Execute to run the process and import your file.");

            root.SetOption(">>", stage2);
            stage2.SetOption(">>", stage3);
            stage3.SetOption(">>", stage4);
            stage4.SetOption("|<<", root);
            //stage4.SetOption("next...", stage2);

            HelpWorkflow.RootStage = root;
        }
コード例 #3
0
        private void ConfigureCatalogueExtractabilityUI_Load(object sender, EventArgs e)
        {
            _workflow = new HelpWorkflow(this, new Guid("74e6943e-1ed8-4c43-89c2-96158c1360fa"), new TutorialTracker(Activator));
            var stage1 = new HelpStage(olvColumnExtractability, "This is a collection of all the column definitions imported, change the Extractable status of one of the columns to make it extractable", () => GetExtractionInformations().Any());
            var stage2 = new HelpStage(ddIsExtractionIdentifier, "One of your columns should contain a patient identifier, select it here", () => GetExtractionInformations().Any(ei => ei.IsExtractionIdentifier));
            var stage3 = new HelpStage(pChangeAll, "Change this dropdown to change all at once", () => _ddChangeAllChanged);
            var stage4 = new HelpStage(pFilter, "Type in here if you are trying to find a specific column", () => !string.IsNullOrWhiteSpace(tbFilter.Text));

            stage1.SetNext(stage2);
            stage2.SetNext(stage3);
            stage2.OptionButtonText  = "I don't have one of those";
            stage2.OptionDestination = stage3;
            stage3.SetNext(stage4);

            _workflow.RootStage = stage1;

            helpIcon1.SetHelpText("Configure Extractability", "Click for tutorial", _workflow);
        }
コード例 #4
0
ファイル: GenerateTestDataUI.cs プロジェクト: lulzzz/RDMP
        private void BuildHelpWorkflow(ICommandExecution command)
        {
            HelpWorkflow = new HelpWorkflow(this, command, new TutorialTracker(Activator));

            var ds =
                new HelpStage(pDatasets,
                              "This control will allow you to create flat comma separated files with fictional data for a shared pool of patient identifiers.  Start by choosing the number of rows you want in each dataset e.g. 1,000,000");
            var pop =
                new HelpStage(pPopulationSize, "Now choose how many unique identifiers you want generated.  If your population pool is smaller than the number of records per dataset there will be a large overlap of patients between datasets while if it is larger the crossover will be sparser.");

            var location = new HelpStage(pOutputDirectory, @"Click browse to select a directory to create the 3 files in");

            var execute = new HelpStage(btnGenerate, "Click to start generating the flat files");

            ds.SetOption(">>", pop);
            pop.SetOption(">>", location);
            location.SetOption(">>", execute);

            HelpWorkflow.RootStage = ds;
        }
コード例 #5
0
ファイル: ExecuteExtractionUI.cs プロジェクト: lulzzz/RDMP
        private HelpWorkflow BuildHelpFlow()
        {
            var helpWorkflow = new HelpWorkflow(this, new ExecuteCommandExecuteExtractionConfiguration(Activator), new NullHelpWorkflowProgressProvider());

            //////Normal work flow
            var root = new HelpStage(tlvDatasets, "Choose the datasets and Globals you want to extract here.\r\n" +
                                     "\r\n" +
                                     "Click on the red icon to disable this help.");
            var stage2 = new HelpStage(_pipelinePanel.Control, "Select the pipeline to run for extracting the data.\r\n");

            root.SetOption(">>", stage2);
            stage2.SetOption(">>", checkAndExecuteUI1.HelpStages.First());
            for (int i = 0; i < checkAndExecuteUI1.HelpStages.Count - 1; i++)
            {
                checkAndExecuteUI1.HelpStages[i].SetOption(">>", checkAndExecuteUI1.HelpStages[i + 1]);
            }

            checkAndExecuteUI1.HelpStages.Last().SetOption("|<<", root);

            helpWorkflow.RootStage = root;
            return(helpWorkflow);
        }