Example #1
0
        public OrganizationProfileContentViewModel(
            IInviteService inviteService,
            IValidationObjectFactory validationObjectFactory)
        {
            _inviteService = inviteService;

            AddTeamPopupViewModel = ViewModelLocator.Resolve <AddTeamPopupViewModel>();
            AddTeamPopupViewModel.InitializeAsync(this);

            TeamMemberProviderViewModel = ViewModelLocator.Resolve <TeamMemberProviderViewModel>();
            TeamMemberProviderViewModel.InitializeAsync(this);
        }
Example #2
0
        public MembersViewModel(
            ITeamMembersDataItems teamMembersDataItems,
            ITeamService teamService)
        {
            _teamMembersDataItems = teamMembersDataItems;
            _teamService          = teamService;

            Filters = _teamMembersDataItems.BuildTeamMemberFilterItems();

            TeamMemberProviderViewModel = ViewModelLocator.Resolve <TeamMemberProviderViewModel>();
            TeamMemberProviderViewModel.InitializeAsync(this);
            TeamMemberProviderViewModel.TeamMembersUpdated += OnTeamMemberProviderViewModelTeamMembersUpdated;

            IsNestedPullToRefreshEnabled = true;
        }
Example #3
0
        public CoachProfileContentViewModel(
            IInviteService inviteService,
            ISportService sportService,
            ISportsFactory sportsFactory,
            ITeamMemberFactory teamMemberFactory,
            ITeamMemberService teamMemberService,
            IValidationObjectFactory validationObjectFactory,
            IStateService stateService)
        {
            _sportService            = sportService;
            _sportsFactory           = sportsFactory;
            _inviteService           = inviteService;
            _teamMemberFactory       = teamMemberFactory;
            _teamMemberService       = teamMemberService;
            _validationObjectFactory = validationObjectFactory;
            _stateService            = stateService;

            AddTeamPopupViewModel = ViewModelLocator.Resolve <AddTeamPopupViewModel>();
            AddTeamPopupViewModel.InitializeAsync(this);

            TeamMemberProviderViewModel = ViewModelLocator.Resolve <TeamMemberProviderViewModel>();
            TeamMemberProviderViewModel.InitializeAsync(this);
        }