예제 #1
0
        private void frmProcessingStatus_Load(object sender, EventArgs e)
        {
            //move engine form to bottom right and bring to front
            if (engineSettings.ShowDebugWindow)
            {
                this.BringToFront();
                MoveFormToBottomRight(this);
            }

            //start running
            engineInstance = new Core.AutomationEngineInstance();
            engineInstance.ReportProgressEvent    += Engine_ReportProgress;
            engineInstance.ScriptFinishedEvent    += Engine_ScriptFinishedEvent;
            engineInstance.LineNumberChangedEvent += EngineInstance_LineNumberChangedEvent;
            engineInstance.taskModel       = remoteTask;
            engineInstance.tasktEngineUI   = this;
            engineInstance.serverExecution = this.serverExecution;
            if (xmlData == null)
            {
                engineInstance.ExecuteScriptAsync(this, filePath);
            }
            else
            {
                engineInstance.ExecuteScriptXML(xmlData);
            }
        }
예제 #2
0
        private void frmProcessingStatus_Load(object sender, EventArgs e)
        {
            //move engine form to bottom right and bring to front
            if (engineSettings.ShowDebugWindow)
            {
                this.BringToFront();
                MoveFormToBottomRight(this);
            }

            //start running
            engineInstance = new Core.AutomationEngineInstance();
            engineInstance.ReportProgressEvent    += Engine_ReportProgress;
            engineInstance.ScriptFinishedEvent    += Engine_ScriptFinishedEvent;
            engineInstance.LineNumberChangedEvent += EngineInstance_LineNumberChangedEvent;
            engineInstance.ExecuteScriptAsync(this, filePath);
        }