Exemplo n.º 1
0
        private void abrirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            //openFileDialog1.InitialDirectory = @"C:\Users\Douglas Tertuliano\Desktop";
            openFileDialog1.Title      = "Arquivo do programa em PasC para ser executado:";
            openFileDialog1.DefaultExt = "txt";
            openFileDialog1.Filter     = "txt files (*.txt)|*.txt|All files (*.*)|*.*";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                var fileName = openFileDialog1.FileName;
                CodePath = fileName;  //textBox1.Text;
                OurMethods.performsAutomaton(CodePath, Entrada, ReadText);
            }
        }
Exemplo n.º 2
0
 private void button7_Click(object sender, EventArgs e)
 {
     CodePath = textBox1.Text;
     OurMethods.performsAutomaton(CodePath, Entrada, ReadText);
 }
Exemplo n.º 3
0
 private void button6_Click(object sender, EventArgs e)
 {
     CodePath = OurMethods.readFile("SuccessCase3.txt");
     OurMethods.performsAutomaton(CodePath, Entrada, ReadText);
 }