Beispiel #1
0
 public DetailsPageViewModel(IRootObjectService <Imovel> rootObjectService,
                             IDialogsFunctions dialogService,
                             IApplicationService <Imovel> imovelService)
 {
     _rootObjectService = rootObjectService;
     _imovelService     = imovelService;
     _dialogService     = dialogService;
 }
Beispiel #2
0
        public DetailsPageViewModel(IRootObjectService <Imovel> rootObjectService,
                                    IDialogsFunctions dialogService,
                                    IApplicationService <Imovel> imovelService,
                                    INavigationService navigationService)
        {
            _navigationService = navigationService;
            _rootObjectService = rootObjectService;
            _imovelService     = imovelService;
            _dialogService     = dialogService;

            ImageTappedCommand = new DelegateCommand <string>(ImageTapped);
            SendCommand        = new DelegateCommand(Send);
        }
Beispiel #3
0
        public MainPageViewModel(IDialogsFunctions dialogService,
                                 IApplicationService <Imovei> imovelService,
                                 INavigationService navigationService,
                                 IRootObjectService <Imovei> rootObjectService,
                                 IPageDialogService pageService)
        {
            _navigationService = navigationService;
            _dialogService     = dialogService;
            _imovelService     = imovelService;
            _rootObjectService = rootObjectService;
            _pageService       = pageService;

            ItemTappedCommand = new DelegateCommand <Imovei>(ItemTapped);
            OrderByCommand    = new DelegateCommand(OrderBy);

            Task.Delay(3000);
            GetData();
        }
Beispiel #4
0
        public MainPageViewModel(IDialogsFunctions dialogService,
                                 IApplicationService <Imovei> imovelService,
                                 INavigationService navigationService,
                                 IRootObjectService <Imovei> rootObjectService,
                                 IPageDialogService pageService)
        {
            try
            {
                _navigationService = navigationService;
                _dialogService     = dialogService;
                _imovelService     = imovelService;
                _rootObjectService = rootObjectService;
                _pageService       = pageService;

                ItemTappedCommand = new DelegateCommand <Imovei>(ItemTapped);
                OrderByCommand    = new DelegateCommand(OrderBy);
                SetData();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }