Ejemplo n.º 1
0
        private void cmdJUnitUpdate_Click(object sender, System.EventArgs e)
        {
            int            evalID = Convert.ToInt32(lblEvalID.Text);
            Evaluations    evalda = new Evaluations(Globals.CurrentIdentity);
            AutoEvaluation eval   = (AutoEvaluation)evalda.GetInfo(evalID);

            try {
                eval.RunOnSubmit = chkJUnitPreTest.Checked;
                eval.Competitive = chkJUnitCompete.Checked;
                evalda.UpdateAuto(eval, new EmptySource());
            } catch (CustomException er) {
                PageJUnitError(er.Message);
            }

            UpdateRightSide();
        }
Ejemplo n.º 2
0
		private void lstTests_SelectedIndexChanged(object sender, System.EventArgs e) {
			
			ArrayList evals = GetTests();
			Evaluations aevals = new Evaluations(Globals.CurrentIdentity);

			lstOrder.Items.Clear();
			foreach (int evalID in evals) {
				Evaluation eval = aevals.GetInfo(evalID);
				Evaluations.DependencyGraph dg = 
					new Evaluations.DependencyGraph(eval, Globals.CurrentIdentity);
				
				Evaluation.EvaluationList order = dg.GetBuildOrder();
				foreach (Evaluation oeval in order) 
					lstOrder.Items.Add(oeval.Name);
			
				lstOrder.Items.Add(eval.Name);
			}
		}