private void actualProblemMenuClicked(object sender, EventArgs e) { clearOldStuff(); theProblem = ProblemFactory.createActualProblem(); if (problemChangedListener != null) { problemChangedListener.onProblemChanged(theProblem.getDataForAlgorithm()); } initializeGUI(); }
public void setProblemChangedListener(ProblemChangedListener pcl) { this.problemChangedListener = pcl; if (problemChangedListener != null) { problemChangedListener.onProblemChanged(theProblem.getDataForAlgorithm()); } }