示例#1
0
 //used for multithreading
 private void CompRun()
 {
     try
     {
         comp.Run();
     }
     catch
     {
         MessageBox.Show("Run failed!");
         //     RunBtn.Enabled = true;
     }
 }
示例#2
0
        static void Main(string [] args)
        {
            Options opts = new Options(args);

            opts.ParseOptions();
            if (opts.exec && opts.filename != null)
            {
                Computer exec = new Computer(opts.mem);
                exec.setFileName(opts.filename);
                exec.setTrace();
                exec.resetComputer();

                exec.Run();
                Environment.Exit(0);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(args));
        }