Exemple #1
0
        public SimpleListViewModelBase(
            IDataService dataService,
            IExtendedDialogsService dialogsService)
        {
            _dataService    = dataService;
            _dialogsService = dialogsService;

            ItemModels = new ObservableRangeCollection <ItemViewModel>();

            SelectItemCommand = new AsyncCommand <ItemViewModel>(SelectItem);
        }
Exemple #2
0
 public GroupedListViewModelBase(
     IExtendedDialogsService dialogsService,
     IDataService dataService)
 {
     _dialogsService        = dialogsService;
     AddAllToCartCommand    = new RelayCommand(AddAll);
     GenerateGroupCommand   = new RelayCommand(GenerateGroup);
     _addGroupToCartCommand = new RelayCommand <ProductHeaderViewModel>(AddGroupToBasket);
     _generateItemCommand   = new RelayCommand <ProductHeaderViewModel>(GenerateItem);
     _groupInfoCommand      = new AsyncCommand <ProductHeaderViewModel>(GroupInfo);
     _addToCartCommand      = new RelayCommand <ProductViewModel>(AddToBasket, CanAddToBasket);
     ProductListViewModel   = new ProductListViewModel(dataService, _addGroupToCartCommand, _generateItemCommand, _addToCartCommand, _groupInfoCommand);
     ProductBasketViewModel = new ProductBasketViewModel();
 }
        public DialogsPageViewModel(
            IExtendedDialogsService dialogsService,
            ILogManager logManager)
        {
            _dialogsService = dialogsService;
            _logger         = logManager.GetLogger <DialogsPageViewModel>();

            PersonConverter = new PersonToStringConverter();

            OpenAlertCommand              = new AsyncCommand(OpenAlert);
            OpenConfirmCommand            = new AsyncCommand(OpenConfirm);
            OpenActionSheetCommand        = new AsyncCommand(OpenActionSheet);
            OpenDialogUntilDismissCommand = new RelayCommand(OpenDialogUntilDismiss);
            OpenDialogUntilResultCommand  = new AsyncCommand(OpenDialogUntilResult);
            OpenTwoDialogsCommand         = new AsyncCommand(OpenTwoDialogs);
        }
 public GroupedTablePageViewModel(IExtendedDialogsService dialogsService, IDataService dataService)
     : base(dialogsService, dataService)
 {
 }
Exemple #5
0
 public DetailsPageViewModel(
     IExtendedDialogsService dialogsService)
 {
     _dialogsService = dialogsService;
 }
Exemple #6
0
 public CollectionPageViewModel(
     IDataService dataService,
     IExtendedDialogsService dialogsService)
     : base(dataService, dialogsService)
 {
 }
 public TablePageViewModel(
     IDataService dataService,
     IExtendedDialogsService dialogsService)
     : base(dataService, dialogsService)
 {
 }
Exemple #8
0
 public GroupedCollectionPageViewModel(IExtendedDialogsService dialogsService, IDataService dataService)
     : base(dialogsService, dataService)
 {
 }