public ReservationsController(MagicCarpetWebAppContext context, INsService nsService, CalculateController calculateController, IQrService qrService)
 {
     _context             = context;
     _nsService           = nsService;
     _calculateController = calculateController;
     _qrService           = qrService;
 }
Esempio n. 2
0
 public AddContactViewModel(IQrService qrService, IMessageService messageService, IMvxMessenger messenger, IPopupHelper helper) : base(messenger, helper)
 {
     _qrService          = qrService;
     _messageService     = messageService;
     CodeDetectedCommand = new MvxCommand <string>(CodeDetectedCommandAction);
     AddContactCommand   = new MvxCommand(AddContactCommandAction, AddContactCanExecute);
 }
 public AddContactViewModel(IQrService qrService, IMessageService messageService, IMvxMessenger messenger, IPopupHelper helper)
     : base(messenger, helper)
 {
     _qrService = qrService;
     _messageService = messageService;
     CodeDetectedCommand = new MvxCommand<string>(CodeDetectedCommandAction);
     AddContactCommand = new MvxCommand(AddContactCommandAction, AddContactCanExecute);
 }
Esempio n. 4
0
        public SettingsViewModel(IUserService userService, IStorageService storageService, IQrService qrService,
                                 IMvxMessenger messenger, IPopupHelper helper) : base(messenger, helper)
        {
            _userService    = userService;
            _storageService = storageService;
            _qrService      = qrService;

            GenerateCodeCommand = new MvxCommand(GenerateCodeAction, () => !string.IsNullOrWhiteSpace(ContactName));
            ClearCommand        = new MvxCommand(ClearCommandAction);
        }
		public SettingsViewModel(IUserService userService, IStorageService storageService, IQrService qrService,
			 IMvxMessenger messenger, IPopupHelper helper) : base(messenger, helper)
		{
			_userService = userService;
			_storageService = storageService;
			_qrService = qrService;

			GenerateCodeCommand = new MvxCommand(GenerateCodeAction, () => !string.IsNullOrWhiteSpace(ContactName));
			ClearCommand = new MvxCommand(ClearCommandAction);
		}
 public ExportAccountViewModel() : base()
 {
     this.qrService = ServiceContainer.Resolve <IQrService> ();
 }
Esempio n. 7
0
 public QrController(IQrService service)
 {
     _service = service;
 }