コード例 #1
0
        public AcquaintanceDetailViewModel(Acquaintance acquaintance = null)
        {
            _CapabilityService = DependencyService.Get<ICapabilityService>();

            _Geocoder = new Geocoder();

            if (acquaintance == null)
            {
                _IsNewAcquaintance = true;
                Acquaintance = new Acquaintance();
            }
            else
            {
                _IsNewAcquaintance = false;
                Acquaintance = acquaintance;
            }

			Title = _IsNewAcquaintance ? "New Acquaintance" : _Acquaintance.DisplayLastNameFirst;

            _AddressString = Acquaintance.AddressString;

            SubscribeToSaveAcquaintanceMessages();

            SubscribeToAcquaintanceLocationUpdatedMessages();
        }
コード例 #2
0
        public AcquaintanceDetailViewModel(Acquaintance acquaintance = null)
        {
            _CapabilityService = DependencyService.Get <ICapabilityService>();

            _Geocoder = new Geocoder();

            if (acquaintance == null)
            {
                _IsNewAcquaintance = true;
                Acquaintance       = new Acquaintance();
            }
            else
            {
                _IsNewAcquaintance = false;
                Acquaintance       = acquaintance;
            }

            Title = _IsNewAcquaintance ? "New Acquaintance" : _Acquaintance.DisplayLastNameFirst;

            _AddressString = Acquaintance.AddressString;

            SubscribeToSaveAcquaintanceMessages();

            SubscribeToAcquaintanceLocationUpdatedMessages();
        }
コード例 #3
0
 public RolesController(IRoleService roleService, ICapabilityService capabilityService, IDataSerializer dataSerializer, IRoleModelFactory roleModelFactory)
 {
     _roleService       = roleService;
     _capabilityService = capabilityService;
     _dataSerializer    = dataSerializer;
     _roleModelFactory  = roleModelFactory;
 }
コード例 #4
0
        public CustomerDetailViewModel(Customer customer = null)
        {
            _CapabilityService = DependencyService.Get<ICapabilityService>();

            _Geocoder = new Geocoder();

            if (customer == null)
            {
                _IsNewCustomer = true;
                Customer = new Customer();
            }
            else
            {
                _IsNewCustomer = false;
                Customer = customer;
            }

            Title = _IsNewCustomer ? "New Customer" : _Customer.DisplayLastNameFirst;

            _AddressString = Customer.AddressString;

            SubscribeToSaveCustomerMessages();

            SubscribeToCustomerLocationUpdatedMessages();
        }
コード例 #5
0
 protected void Setup()
 {
     _roleService           = Resolve <IRoleService>();
     _userService           = Resolve <IUserService>();
     _roleCapabilityService = Resolve <IRoleCapabilityService>();
     _capabilityService     = Resolve <ICapabilityService>();
 }
コード例 #6
0
        public CustomerDetailViewModel(Customer customer = null)
        {
            _CapabilityService = DependencyService.Get <ICapabilityService>();

            _Geocoder = new Geocoder();

            if (customer == null)
            {
                _IsNewCustomer = true;
                Customer       = new Customer();
            }
            else
            {
                _IsNewCustomer = false;
                Customer       = customer;
            }

            Title = _IsNewCustomer ? "New Customer" : _Customer.DisplayLastNameFirst;

            _AddressString = Customer.AddressString;

            SubscribeToSaveCustomerMessages();

            SubscribeToCustomerLocationUpdatedMessages();
        }
コード例 #7
0
 public UsersController(IUserService userService, IModelMapper modelMapper, IRoleService roleService, ICapabilityService capabilityService, IUserRegistrationService userRegistrationService, IDataSerializer dataSerializer, IAddressService addressService, IOrderService orderService, IOrderModelFactory orderModelFactory, IRoleModelFactory roleModelFactory, ICartService cartService, IUserCodeService userCodeService, IInviteRequestService inviteRequestService, IAddressModelFactory addressModelFactory, IUserPointService userPointService, IUserModelFactory userModelFactory, IStoreCreditService storeCreditService)
 {
     _userService             = userService;
     _modelMapper             = modelMapper;
     _roleService             = roleService;
     _capabilityService       = capabilityService;
     _userRegistrationService = userRegistrationService;
     _dataSerializer          = dataSerializer;
     _addressService          = addressService;
     _orderService            = orderService;
     _orderModelFactory       = orderModelFactory;
     _roleModelFactory        = roleModelFactory;
     _cartService             = cartService;
     _userCodeService         = userCodeService;
     _inviteRequestService    = inviteRequestService;
     _addressModelFactory     = addressModelFactory;
     _userPointService        = userPointService;
     _userModelFactory        = userModelFactory;
     _storeCreditService      = storeCreditService;
 }
コード例 #8
0
 public RoleCapabilityService(ICapabilityService capabilityService)
 {
     _capabilityService = capabilityService;
 }
コード例 #9
0
 public RoleCapabilityService(ICapabilityService capabilityService)
 {
     _capabilityService = capabilityService;
 }