Esempio n. 1
0
        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;
 }
Esempio n. 3
0
        public RunButtonNavigator(IToolbarView toolbarView, IWordCounterModel wordCounterModel)
        {
            toolbarView.ButtonRunClick += OnRunClick;

            this.wordCounterModel = wordCounterModel;
        }