Beispiel #1
0
        public void ActivateCompilation_Finished()
        {
            System.Windows.Forms.Button b = new System.Windows.Forms.Button();
            var result = Submissions.ActivateCompilation(b);

            Assert.IsTrue(result);
        }
        public static void CompileHelper(Button btnCompile, TextBox txtArchivePath, TextBox txtInputPath, TextBox txtOutputPath)
        {
            string validateText = FormValidate(txtArchivePath, txtInputPath, txtOutputPath);

            if (validateText.CompareTo("OK") != 0)
            {
                MessageBox.Show(validateText, "Error");
            }
            else
            {
                if (Submissions.ActivateCompilation(btnCompile)) //Both compile and check that it finished compiling. (Send button for text updates)
                {
                    btnCompile.Text = "Compile Programs";        //Return to the original text.
                }
            }
        }