private void OnGenerationComplete(ScriptGeneratedEventArgs e)
 {
     if (GenerationComplete != null)
     {
         GenerationComplete(this, e);
     }
 }
 private void OnGenerationError(ScriptGeneratedEventArgs e)
 {
     if (GenerationError != null)
     {
         GenerationError(this, e);
     }
 }
 private void OnScriptEndGeneration(ScriptGeneratedEventArgs e)
 {
     if (ScriptEndGeneration != null)
     {
         ScriptEndGeneration(this, e);
     }
 }
 private void scriptGenerator_GenerationComplete(object sender, ScriptGeneratedEventArgs e)
 {
     SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationMessage);
     SetControlPropertyValue(this.generationProgressBar, "Value", 100);
     MessageBox.Show("Execution Finished!");
     setControl(true);
 }
 private void scriptGenerator_GenerationError(object sender, ScriptGeneratedEventArgs e)
 {
     setControl(true);
     if (e.GenerationException.Message.StartsWith("*"))
     {
         SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationException.Message);
         scriptGenerator_GenerationComplete(sender, e);
     }
     else
     {
         MessageBox.Show("Error occured during conversion." + e.GenerationException.Message, "Generation", MessageBoxButtons.OK, MessageBoxIcon.Error);
         SetControlPropertyValue(this.generationProgressBar, "Value", 0);
         SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationException.Message);
     }
 }
 private void scriptGenerator_ScriptEndGeneration(object sender, ScriptGeneratedEventArgs e)
 { 
     SetControlPropertyValue(this.generationProgressBar, "Value", 90);
 }
        private void scriptGenerator_GenerationError(object sender, ScriptGeneratedEventArgs e)
        {
            setControl(true);
            if (e.GenerationException.Message.StartsWith("*"))
            {
                SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationException.Message);
                scriptGenerator_GenerationComplete(sender, e);
                
            }
            else
            {
                MessageBox.Show("Error occured during conversion." + e.GenerationException.Message, "Generation", MessageBoxButtons.OK, MessageBoxIcon.Error);
                SetControlPropertyValue(this.generationProgressBar, "Value", 0);
                SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationException.Message);
            }

        }
 private void scriptGenerator_GenerationComplete(object sender, ScriptGeneratedEventArgs e)
 {
     SetControlPropertyValue(this.richTextBoxMessage, "Text", e.GenerationMessage);
     SetControlPropertyValue(this.generationProgressBar, "Value", 100);
     MessageBox.Show("Execution Finished!");
     setControl(true);
 }
 private void OnGenerationComplete(ScriptGeneratedEventArgs e)
 {
     if (GenerationComplete != null)
     {
         GenerationComplete(this, e);
     }
 }
 private void OnGenerationError(ScriptGeneratedEventArgs e)
 {
     if (GenerationError != null)
     {
         GenerationError(this, e);
     }
 }
 private void OnScriptEndGeneration(ScriptGeneratedEventArgs e)
 {
     if (ScriptEndGeneration != null)
     {
         ScriptEndGeneration(this, e);
     }
 }
 private void scriptGenerator_ScriptEndGeneration(object sender, ScriptGeneratedEventArgs e)
 {
     SetControlPropertyValue(this.generationProgressBar, "Value", 90);
 }