/// <summary> /// this method checks with the data base if there are friends who needs to be greeted. /// If there are it initiates the m_WorkList /// </summary> /// <returns></returns> private bool serviceNeedsToWork() { bool result = false; DataBaseHandler db = new DataBaseHandler(); m_GreetingJobs = db.GetFriendsOfApplicationUsersWithBirthdaysToday(); if (m_GreetingJobs.Count != 0) { result = true; } else { result = false; } return result; }