Example #1
0
        /// <summary>
        /// Initializes required information to work with screen & data.
        /// </summary>
        /// <param name="usersData">Implementation of IUsersData</param>
        /// <param name="userTasksData">Implementation of IUsersTasksData</param>
        /// <param name="tasksData">Implementation of ITasksData</param>
        /// <param name="categoriesData">Implementation of ICategoriesData</param>
        public ShellViewModel(IUsersData usersData, IUserTasksData userTasksData, ITasksData tasksData, ICategoriesData categoriesData)
        {
            _eventTracker = EventAggregatorProvider.GetInstance();

            _usersData      = usersData;
            _userTasksData  = userTasksData;
            _tasksData      = tasksData;
            _categoriesData = categoriesData;
            AvailableUsers  = new BindableCollection <UserModel>(_usersData?.GetUsers() ?? new List <UserModel>());
        }
Example #2
0
 public List <UserSM> GetUsers()
 {
     return(_usersData.GetUsers());
 }