示例#1
0
 /// <summary>
 /// Gets all reactions to a specific post from the Data access layer
 /// </summary>
 /// <param name="ID">The ID of the selected post from Tijdlijnform<param>
 /// <returns>A list of reactions</returns>
 public List <Post> GetReaction(string ID)
 {
     if (CurrentAccount.ID == 3)
     {
         Postlist = DatabaseGetPost.GetReaction(ID);
     }
     else
     {
         Postlist = DatabaseGetPost.GetSafeReaction(ID);
     }
     return(Postlist);
 }
示例#2
0
 /// <summary>
 /// Gets all post from the Data access layer
 /// </summary>
 /// <returns>A list of posts</returns>
 public List <Post> GetPost()
 {
     if (CurrentAccount.ID == 3)
     {
         Postlist = DatabaseGetPost.GetPost();
     }
     else
     {
         Postlist = DatabaseGetPost.GetSafePost();
     }
     return(Postlist);
 }
示例#3
0
 /// <summary>
 /// Filters posts on word in the text and category
 /// </summary>
 /// <param name="woord">The text entered in the Searchbox</param>
 /// <param name="categorie">The category selected in the comboSearchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetWordCategory(string woord, string categorie)
 {
     return(Filterlist = DatabaseGetPost.GetWordCategory(woord, categorie));
 }
示例#4
0
 /// <summary>
 /// Filters posts on name and category
 /// </summary>
 /// <param name="naam">The name entered in the Searchbox<param>
 /// <param name="categorie">The category selected in the comboSearchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetNameCategory(string naam, string categorie)
 {
     return(Filterlist = DatabaseGetPost.GetNameCategory(naam, categorie));
 }
示例#5
0
 /// <summary>
 /// Filters posts on name and words in the text
 /// </summary>
 /// <param name="naam">The name entered in the Searchbox<param>
 /// <param name="woord">The text entered in the Searchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetNameWord(string naam, string woord)
 {
     return(Filterlist = DatabaseGetPost.GetNameWord(naam, woord));
 }
示例#6
0
 /// <summary>
 /// Filters posts on the selected category
 /// </summary>
 /// <param name="categorie">The category selected in the comboSearchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetCategory(string categorie)
 {
     return(Filterlist = DatabaseGetPost.GetCategory(categorie));
 }
示例#7
0
 /// <summary>
 /// Filters posts on words in the text
 /// </summary>
 /// <param name="woord">The text entered in the Searchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetWord(string woord)
 {
     return(Filterlist = DatabaseGetPost.GetWord(woord));
 }
示例#8
0
 /// <summary>
 /// Filters posts on name
 /// </summary>
 /// <param name="naam">The name entered in the Searchbox<param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetName(string naam)
 {
     return(Filterlist = DatabaseGetPost.GetName(naam));
 }
示例#9
0
 /// <summary>
 /// Filters posts on 3 parameters
 /// </summary>
 /// <param name="naam">The name entered in the Searchbox<param>
 /// <param name="woord">The text entered in the Searchbox</param>
 /// <param name="categorie">The category selected in the comboSearchbox</param>
 /// <returns>A list of posts which match the criteria</returns>
 public List <Post> GetAll(string naam, string woord, string categorie)
 {
     return(Filterlist = DatabaseGetPost.GetAll(naam, woord, categorie));
 }