Ejemplo n.º 1
0
        private void btnCriteria_Click(object sender, EventArgs e)
        {
            FormCriteria formCriteria = new FormCriteria();

            // if the criteria dialog was shown and nothing changed, all good
            if (formCriteria.ShowDialog(Solver_) != DialogResult.OK)
            {
                return;
            }

            Solver_.Timetable.RecomputeSolutions = true;
            FormProgress formProgress = new FormProgress();

            formProgress.ShowDialog(Solver_);

            Reset();
        }
Ejemplo n.º 2
0
        private void EditCriteria()
        {
            if (Timetable_ == null)
                return;

            FormCriteria formCriteria = new FormCriteria();
            if (formCriteria.ShowDialog(Solver_) != DialogResult.OK)
                return;
            Timetable_.RecomputeSolutions = true;
        }
Ejemplo n.º 3
0
        private void btnCriteria_Click(object sender, EventArgs e)
        {
            FormCriteria formCriteria = new FormCriteria();
            // if the criteria dialog was shown and nothing changed, all good
            if (formCriteria.ShowDialog(Solver_) != DialogResult.OK)
                return;

            Solver_.Timetable.RecomputeSolutions = true;
            FormProgress formProgress = new FormProgress();
            formProgress.ShowDialog(Solver_);

            Reset();
        }