public TextSynchronizer(IWordCounterModel wordCounterModel, ITextInputModel textInputModel)
        {
            this.wordCounterModel = wordCounterModel;
            this.textInputModel   = textInputModel;

            textInputModel.TextInputChange += OnTextInputChange;
        }
 public WordCounterPresenter(IWordCounterView wordCounterView, IWordCounterModel wordCounterModel)
 {
     this.wordCounterView  = wordCounterView;
     this.wordCounterModel = wordCounterModel;
     wordCounterModel.WordCounterDataChange += OnModelDataCHange;
 }
Beispiel #3
0
        public RunButtonNavigator(IToolbarView toolbarView, IWordCounterModel wordCounterModel)
        {
            toolbarView.ButtonRunClick += OnRunClick;

            this.wordCounterModel = wordCounterModel;
        }