Ejemplo n.º 1
0
        public void ActivateExecution_Finished()
        {
            System.Windows.Forms.Button b = new System.Windows.Forms.Button();
            var result = Submissions.ActivateExecution(b);

            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        public static void RunHelper(Button btnRunProgram, TextBox txtArchivePath, TextBox txtInputPath, TextBox txtOutputPath, Button btnResults)
        {
            string validateText = FormValidate(txtArchivePath, txtInputPath, txtOutputPath);

            if (validateText.CompareTo("OK") != 0)
            {
                MessageBox.Show(validateText, "Error");
            }
            else
            {
                if (Submissions.ActivateExecution(btnRunProgram)) //Both run and check that it finished running. (Send button for text updates).
                {
                    btnRunProgram.Text = "Run Programs";          //Return to the original text.
                }
                btnResults.Enabled = true;
            }
        }