Esempio n. 1
0
        public MainDialogPresenter(IMainDialog view)
        {
            _view                 = view;
            _devices              = new BindingList <ComboItem>();
            _multimeters          = new BindingList <ComboItem>();
            _calboxes             = new BindingList <ComboItem>();
            _devices.ListChanged += DevicesListChanged;
            _taskScheduler        = TaskScheduler.FromCurrentSynchronizationContext();

            _view.SetDevices(_devices);
            _view.SetMultimeters(_multimeters);
            _view.SetCalboxes(_calboxes);
            _view.JustifyEvent      += JustifyEvent;
            _view.CalibrateEvent    += CalibrateEvent;
            _view.SettingsEvent     += SettingsEvent;
            _view.AboutEvent        += AboutEvent;
            _view.HelpEvent         += HelpEvent;
            _view.DeviceChanged     += DeviceChanged;
            _view.MultimeterChanged += MultimeterChanged;
            _view.CalboxChanged     += CalboxChanged;
        }
Esempio n. 2
0
 public IHardwareDetectionPresenter MakeMainDialogPresenter(IMainDialog view)
 {
     return(new MainDialogPresenter(view));
 }