public SimpleListViewModelBase( IDataService dataService, IExtendedDialogsService dialogsService) { _dataService = dataService; _dialogsService = dialogsService; ItemModels = new ObservableRangeCollection <ItemViewModel>(); SelectItemCommand = new AsyncCommand <ItemViewModel>(SelectItem); }
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) { }
public DetailsPageViewModel( IExtendedDialogsService dialogsService) { _dialogsService = dialogsService; }
public CollectionPageViewModel( IDataService dataService, IExtendedDialogsService dialogsService) : base(dataService, dialogsService) { }
public TablePageViewModel( IDataService dataService, IExtendedDialogsService dialogsService) : base(dataService, dialogsService) { }
public GroupedCollectionPageViewModel(IExtendedDialogsService dialogsService, IDataService dataService) : base(dialogsService, dataService) { }