public QuiverAnalyzerController(QuiverAnalyzerModel model, QuiverAnalyzerView view) { analyzerModel = model ?? throw new ArgumentNullException(nameof(model)); this.view = view ?? throw new ArgumentNullException(nameof(view)); view.AnalyzeButtonClicked += View_AnalyzeButtonClicked; }
public QuiverAnalyzerMvc( QuiverEditorModel editorModel, Button analyzeButton, GroupBox analysisResultsGroupBox, Label analysisMainResultLabel, ListView maximalPathRepresentativesListView, ListView nakayamaPermutationListView, TextBox orbitTextBox, TextBox longestPathEncounteredTextBox, Label longestPathEncounteredLengthLabel) { Model = new QuiverAnalyzerModel(editorModel); View = new QuiverAnalyzerView( Model, analyzeButton, analysisResultsGroupBox, analysisMainResultLabel, maximalPathRepresentativesListView, nakayamaPermutationListView, orbitTextBox, longestPathEncounteredTextBox, longestPathEncounteredLengthLabel); Controller = new QuiverAnalyzerController(Model, View); }