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;
        }
Example #3
0
        public TextInputPresenter(ITextInputView textInputView, ITextInputModel textInputModel)
        {
            this.textInputView  = textInputView;
            this.textInputModel = textInputModel;

            textInputView.TextInputChanged += OnViewTextChanged;
            textInputModel.TextInputChange += OnModelTextChanged;
        }
Example #4
0
 public LoadTextFromFileToTextInput(ILoadTextFromFile loadTextFromFile, ITextInputModel textInputModel)
 {
     this.loadTextFromFile = loadTextFromFile;
     this.textInputModel   = textInputModel;
 }