public PhoneBookViewModel(IPhoneContactService contactservice, IEventAggregator eventaggregator)
        {
            _ContactService  = contactservice;
            _EventAggregator = eventaggregator;
            _EventAggregator.Subscribe(this);

            Contacts = new BindableCollection <PhoneContactViewModel>();
        }
Esempio n. 2
0
 public CustomerController(ICustomerService customerService, IAddressService addressService,
                           IPhoneContactService phoneContactService, IMapper mapper)
 {
     _customerService     = customerService;
     _addressService      = addressService;
     _phoneContactService = phoneContactService;
     _mapper = mapper;
 }
        public ContactViewModel(
            IConnectionService connectionService,
            IDialogService dialogService,
            IContactDataService contactDataService,
            IPhoneContactService phoneContactService)
        {
            _connectionService   = connectionService;
            _dialogService       = dialogService;
            _contactDataService  = contactDataService;
            _phoneContactService = phoneContactService;

            _message = new ValidatableObject <string>();
            _email   = new ValidatableObject <string>();

            AddValidations();
        }
Esempio n. 4
0
 public FriendsListViewModel(
     INavigationService navigationService,
     IFriendRequestService friendRequestService,
     IRequestService requestService,
     //ILayerService layerService,
     //IZoneService zoneService,
     IUserInfoService userInfoService,
     IPhoneContactService phoneContactService)
 {
     _navigationService    = navigationService;
     _friendRequestService = friendRequestService;
     _requestService       = requestService;
     _userInfoService      = userInfoService;
     //_layerService = layerService;
     //_zoneService = zoneService;
     _phoneContactService = phoneContactService;
     IsBusy = true;
 }