Exemple #1
0
 private void runSelectedLineToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (File.Exists("rye.exe") == true && File.Exists("bin/rye.exe") == true)
     {
         if (textBox.SelectedText != "")
         {
             try
             {
                 execute.debug(ExecCmd.ExecuteCommand("rye -r " + textBox.SelectedText));
             }
             catch
             {
                 execute.debug("An error has occured");
             }
         }
         else
         {
             MessageBox.Show("No code is selected!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     else
     {
         MessageBox.Show("Error. The compiler is missing!", "rydeUI.exe",
                         MessageBoxButtons.OK, MessageBoxIcon.Error, 0, MessageBoxOptions.ServiceNotification);
     }
 }
Exemple #2
0
 private void runFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (File.Exists("rye.exe") == true && File.Exists("bin/rye.exe") == true)
     {
         if (textBox.Text != "")
         {
             try
             {
                 int lnc = this.textBox.Lines.Count();
                 int i   = 0;
                 while (i < lnc)
                 {
                     execute.debug(ExecCmd.ExecuteCommand("rye -r " + this.textBox.Lines[i].ToString()));
                     i++;
                 }
             }
             catch
             {
                 execute.debug("An error has occured");
             }
         }
         else
         {
             MessageBox.Show("There is no code!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     else
     {
         MessageBox.Show("Error. The compiler is missing!", "rydeUI.exe",
                         MessageBoxButtons.OK, MessageBoxIcon.Error, 0, MessageBoxOptions.ServiceNotification);
     }
 }
Exemple #3
0
        public static void complete_debug()
        {
            int     i    = 0;
            execute exec = new execute();

            MessageBox.Show(mainStrip.ln.ToString());
            while (i < mainStrip.ln)
            {
                i++;
                exec.codeWindow.Text = ExecCmd.ExecuteCommand("rye -r " + mainStrip.codeLines[1].ToString());
            }
            exec.Show();
        }
Exemple #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            string cc = ExecCmd.ExecuteCommand("rye -r " + textBox.Text);

            log.Text += "\n" + cc + "\n";
        }