public bool Build()
 {
     nameExport = projectName.Text;
     //p = new Parser(textEditorControl1.Text, "csharp", nameExport);
     p = new Parser(textEditorControl1.Text, "csharp", ""); //so it will always be .netproc.canvas.exe
     Parser.apppath = apppath;
     try
     {
         p.Parse();
     }
     catch (DNPParseException ex)
     {
         uiOutputText.Text = ex.Message;
         return false;
     }
     uiOutputText.Text = File.Exists(apppath + "DotNetProcessing.Canvas.exe") ? "Build...Success" : "Build...Error";
     return true;
 }
        void RecursiveDump2(DirectoryInfo theDir)
        {
            DirectoryInfo[] subDirectories = theDir.GetDirectories();
            for (int i=0; i < subDirectories.Length; i++)
            {
                // Do not list hidden directories
                if (((subDirectories[i].Attributes) & (FileAttributes.Hidden)) == (FileAttributes.Hidden)) continue;

                RecursiveDump2(subDirectories[i]);
            }
            foreach (FileInfo fi in theDir.GetFiles("*.pde"))
            {
                sr = File.OpenText(theDir.FullName + System.IO.Path.DirectorySeparatorChar + fi.Name);
                s = sr.ReadToEnd();
                sr.Close();
                uiOutputText.Text = fi.Name;
                Application.DoEvents();
                p = new Parser(s, syntax[uiSyntaxComboBox.SelectedIndex], "");
                sw2.WriteLine(fi.Name);
                try
                {
                    p.Parse();
                }
                catch (DNPParseException ex)
                {
                    uiOutputText.Text = ex.Message;
                    sw1.WriteLine(fi.Name);
                }
            }
        }
 private bool Build()
 {
     uiOutputText.Text = "";
     p = new Parser(uiInputText.Text, syntax[uiSyntaxComboBox.SelectedIndex], nameExport);
     Parser.apppath = apppath;
     try
     {
         p.Parse();
     }
     catch (DNPParseException ex)
     {
         uiOutputText.Text = ex.Message;
         return false;
     }
     uiOutputText.Text = "Build...Ok";
     return true;
 }