Beispiel #1
0
        private void viewCodebtn_Click(object sender, EventArgs e)
        {
            string   sourceFile = CtoJObj.getSourceFile();
            codeView cv         = new codeView(false, sourceFile);

            cv.Show();
        }
Beispiel #2
0
        private void convertbtn_Click(object sender, EventArgs e)
        {
            string sourceFile = CtoJObj.getSourceFile();
            Dictionary <string, string> rulesDictionary = CtoJObj.readRulesFile();

            CtoJObj.convertPassOne(sourceFile, rulesDictionary);
            string resultFile = CtoJObj.getResultFile();

            codeView cv = new codeView(true, resultFile);

            cv.Show();

            msg.ForeColor = System.Drawing.Color.Green;
            msg.Text      = "Code Converted";
            msg.Visible   = true;

            Application.DoEvents();
            Thread.Sleep(3000);

            msg.Visible   = false;
            msg.Text      = "";
            msg.ForeColor = System.Drawing.Color.Black;
        }