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(); }
private void EditCriteria() { if (Timetable_ == null) return; FormCriteria formCriteria = new FormCriteria(); if (formCriteria.ShowDialog(Solver_) != DialogResult.OK) return; Timetable_.RecomputeSolutions = true; }
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(); }