示例#1
0
        public WeighDataPresenter(IUnityContainer container, StorageService storage, FiltersManagerPresenter filterManager)
        {
            Page = new PageInfoPresenter();
            _container = container;
            _storage = storage;
            FilterManager = filterManager;

            ShowCameraNavigatorCommand = new DelegateCommand<Weigh>(ShowCameraNavigator);
            RefreshCommand = new DelegateCommand<object>(Refresh);
            NextPageCommand = new DelegateCommand<object>(NextPage);
            PrevPageCommand = new DelegateCommand<object>(PrevPage);
        }
示例#2
0
 public ConnectionPresenter(StorageService service, AppSettings settings, ModalViewManager modalViewManager)
 {
     _service = service;
     _settings = settings;
     ConnectCommand = new DelegateCommand<object>(
         (o) =>
         {
             _settings.Save();
             _service.Connect();
             if (_service.IsConnect)
             {
                 modalViewManager.Hide();
             }
             HasProblems = !_service.IsConnect;
         });
 }