Пример #1
0
        public Presenter(iView view, iModel model)
        {
            _view = view;
            _view.SearchStart += _view_SearchStart;
            _view.SearchStop += _view_SearchStop;
            _view.SetVolumes(Directory.GetLogicalDrives());

            _model = model;
            _model.SearchFinished += _model_SearchFinished;
            _model.Found += _model_Found;

            timer = new Timer();
            timer.Interval = 1;
            timer.Tick += Timer_Tick;
        }
Пример #2
0
 public Controller(iModel model, iView view)
 {
     this.model = model;
     this.view = view;
     SetEvents();
 }