Beispiel #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     mainFormController = new MainFormController(new FormMain());
     Application.Run(mainFormController.getForm());
 }
Beispiel #2
0
        private void PrintBefore(string text)
        {
            MainFormController mfc      = Program.getMainFormController();
            FormMain           formMain = mfc.getForm();

            //formMain.EnableButtonSave();

            formMain.printBefore(text);
        }
Beispiel #3
0
        private void Print(string result)
        {
            MainFormController mfc      = Program.getMainFormController();
            FormMain           formMain = mfc.getForm();

            formMain.EnableButtonSave();

            formMain.print(result);
        }
Beispiel #4
0
        private void PrintResult(List <string> result)
        {
            MainFormController mfc      = Program.getMainFormController();
            FormMain           formMain = mfc.getForm();

            formMain.EnableButtonSave();
            formMain.SetResultList(result);

            foreach (string line in result)
            {
                formMain.print(line);
            }
        }
Beispiel #5
0
        public void end()
        {
            MainFormController mfc      = Program.getMainFormController();
            FormMain           formMain = mfc.getForm();


            if (getState() != ParserState.Error)
            {
                CodeGenerator cg = new CodeGenerator();
                cg.Generate(document);
            }
            else
            {
                formMain.print("error in syntax. Are you sure you have loaded NUnit test?");
                formMain.print("error message: " + errorMessage);
            }
        }