Example #1
0
        public void ScriptGenerate_Click(object sender, System.EventArgs e)
        {
            ZeusParser   parser = new ZeusParser();
            ZeusOutput   zout   = null;
            ZeusTemplate template;

            try
            {
                template = parser.LoadTemplate(this.ScriptStream.BaseStream, this.ScriptFilePath);
                System.Console.WriteLine(template.ScriptBody);

                ExecuteZeusTemplate ex = new ExecuteZeusTemplate();
                ex.ShowGUI += new ShowGUIEventHandler(DynamicGUI_Display);
                zout        = ex.Execute(template);
            }
            catch (Exception x)
            {
                ZeusDisplayError formError = new ZeusDisplayError(x);
                formError.ShowDialog(this);
            }

            if (zout != null)
            {
                SimpleOutputForm frm = new SimpleOutputForm();
                frm.OutText = zout.text;
                frm.ShowDialog(this);
            }
        }
	public class ScriptWindow : ScintillaNETForm
	{
		public ScriptWindow()
		{