public TextSynchronizer(IWordCounterModel wordCounterModel, ITextInputModel textInputModel) { this.wordCounterModel = wordCounterModel; this.textInputModel = textInputModel; textInputModel.TextInputChange += OnTextInputChange; }
public TextInputLoader(ITextInputModel textInputModel, IFileSelectionModel fileOpenModel) { this.textInputModel = textInputModel; this.fileOpenModel = fileOpenModel; //fileOpenModel.FileWasLoaded += OnFileLoaded; }
public TextInputPresenter(ITextInputView textInputView, ITextInputModel textInputModel) { this.textInputView = textInputView; this.textInputModel = textInputModel; textInputView.TextInputChanged += OnViewTextChanged; textInputModel.TextInputChange += OnModelTextChanged; }
public LoadTextFromFileToTextInput(ILoadTextFromFile loadTextFromFile, ITextInputModel textInputModel) { this.loadTextFromFile = loadTextFromFile; this.textInputModel = textInputModel; }