Example #1
0
        string BuildPRG()
        {
            _Application.MainForm.OutputWindow.Show(_Application.MainForm.DockContainer,
                                                    Fireball.Docking.DockState.DockBottom);

            _Application.MainForm.OutputWindow.Clear();

            GemixCompiler compiler = new GemixCompiler();

            compiler.OutputReceived += new EventHandler(compiler_OutputReceived);

            FireEditorTabItem editor = _Application.MainForm.CurrentEditorTabItem;

            _Application.MainForm.Save();

            string prgFile = editor.CodeEditor.FileName;

            string gmxCompiler = _ConfigDocument.SelectSingleNode("gemix/compiler").InnerText;

            compiler.Start(gmxCompiler, prgFile);

            string exeFile = Path.GetFileNameWithoutExtension(prgFile) + ".exe";

            return(File.Exists(exeFile) ? exeFile : null);
        }
Example #2
0
        string BuildPRG()
        {
            _Application.MainForm.OutputWindow.Show(_Application.MainForm.DockContainer,
                 Fireball.Docking.DockState.DockBottom);

            _Application.MainForm.OutputWindow.Clear();

            GemixCompiler compiler = new GemixCompiler();
            compiler.OutputReceived += new EventHandler(compiler_OutputReceived);

            FireEditorTabItem editor = _Application.MainForm.CurrentEditorTabItem;

            _Application.MainForm.Save();

            string prgFile = editor.CodeEditor.FileName;

            string gmxCompiler = _ConfigDocument.SelectSingleNode("gemix/compiler").InnerText;

            compiler.Start(gmxCompiler, prgFile);

            string exeFile = Path.GetFileNameWithoutExtension(prgFile) + ".exe";

            return (File.Exists(exeFile) ? exeFile : null);
        }