/// <summary>
        /// Launches the form and returns the output values after the form has been closed
        /// </summary>
        public static Dictionary <string, Dictionary <string, object> > LaunchForm(
            string contentPath,
            string stylePath,
            string submitElementName,
            string submitEventName,
            Dictionary <string, Dictionary <string, object> > input,
            bool alwaysTop,
            bool getAllElements         = false,
            string[] elementsToRetrieve = null)
        {
            //instaintiate execution context
            ExecutionContext executionContext = new ExecutionContext(contentPath,
                                                                     stylePath,
                                                                     submitElementName,
                                                                     submitEventName,
                                                                     elementsToRetrieve,
                                                                     input,
                                                                     getAllElements,
                                                                     alwaysTop);

            //show window
            CustomFormWindow customWindow = new CustomFormWindow(executionContext);

            customWindow.ShowDialog();

            //get results
            Dictionary <string, Dictionary <string, object> > Results = customWindow.Results;

            return(Results);
        }
Example #2
0
        public static Dictionary <string, Dictionary <string, object> > LaunchForm(
            string contentPath,
            string stylePath,
            string submitElementName,
            string submitEventName,
            Dictionary <string, Dictionary <string, object> > input,
            bool getAllElements         = false,
            string[] elementsToRetrieve = null
            )
        {
            ExecutionContext executionContext = new ExecutionContext(contentPath,
                                                                     stylePath,
                                                                     submitElementName,
                                                                     submitEventName,
                                                                     elementsToRetrieve,
                                                                     input,
                                                                     getAllElements);

            CustomFormWindow customWindow = new CustomFormWindow(executionContext);

            //customWindow.Activate();
            customWindow.ShowDialog();

            //Application app = new Application();
            //app.Run(customWindow);

            Dictionary <string, Dictionary <string, object> > Results = customWindow.Results;

            return(Results);
        }