Exemple #1
0
        void CompileAllToString()
        {
            string allCode = @"
                using System; 
                using System.Collections.Generic; 
                using System.Linq;
                using System.Text;
                using System.Threading.Tasks;

                namespace NewProgram
                {
                    class Program
                    {
                        static void Main(string[] args)
                        {
                        }

                        public void Start(string args)
                        {
                        
                        ";

            allCode += currentNodes[0].CompileToString();
            allCode += @"
                        }
                    }
                }";

            VisualScriptCompiler visualCompiler = new VisualScriptCompiler(allCode);

            visualCompiler = null;

            ConsoleForm c = new ConsoleForm();

            c.Show();
        }
 private void ConsoleForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     Instance = null;
 }
 public void ConsoleForm_Load(object sender, EventArgs e)
 {
     consoleForm = this;
     this.Size   = new Size(600, 300);
     Console.Out.WriteLine("aaaaaaaaaaaaaaaaaaaaaaaaa");
 }