BlueSky.CommandExecutionHelper.ExecuteXMLDefinedDialog C# (CSharp) Method

ExecuteXMLDefinedDialog() public method

public ExecuteXMLDefinedDialog ( string command ) : void
command string
return void
        public void ExecuteXMLDefinedDialog(string command)
        {
            if (AdvancedLogging) logService.WriteToLogLevel("ExtraLogs: templated dialog execution.", LogLevelEnum.Info);
            //UAReturn retval = new UAReturn();
            retval.Success = true;
            AnalyticsData data = new AnalyticsData();
            data.SelectedForDump = selectedForDump;//10Jan2013
            data.PreparedCommand = command;// cmd.CommandSyntax;//storing command
            data.Result = retval;
            //18Nov2013 replared by following data.AnalysisType = cmd.CommandSyntax;
            //data.AnalysisType = cmd.CommandSyntax.Equals("bskyfrmtobj") ? ((UAMenuCommand)parameter).commandtype : cmd.CommandSyntax; //"T-Test"; For Parent Node name 02Aug2012
            data.AnalysisType = command.Equals("bskyfrmtobj") ? ((UAMenuCommand)parameter).commandtype : command; //"T-Test"; For Parent Node name 02Aug2012
            data.InputElement = element;
            data.DataSource = ds;
            data.OutputTemplate = ((UAMenuCommand)parameter).commandoutputformat;
            if (AdvancedLogging) logService.WriteToLogLevel("ExtraLogs: AnalysisComplete() function called:", LogLevelEnum.Info);
            UIController.AnalysisComplete(data);
        }

Usage Example

        private void ExecuteXMLTemplateDefinedCommands(string stmt)//10Jul2014
        {
            CommandRequest xmlgrpcmd = new CommandRequest();

            xmlgrpcmd.CommandSyntax = stmt;
            //o = analytics.ExecuteR(xmlgrpcmd, false, false);

            UAMenuCommand uamc = new UAMenuCommand();
            uamc.bskycommand = stmt;
            uamc.commandtype = stmt;
            CommandExecutionHelper auacb = new CommandExecutionHelper();
            auacb.MenuParameter = menuParameter;
            auacb.RetVal = analytics.Execute(xmlgrpcmd);
            auacb.ExecuteXMLDefinedDialog(stmt);
        }