public void FindArticleByTitle(String title, GetArticlesCallback callback)
 {
     Thread thread = new Thread(new ThreadStart(() =>
     {
         List<Article> articles = new List<Article>();
         articles.Add(new Article() { Title = title, Content = " cos tam cos tam cos tam tresc cos tam cos tam cos tam tresc", Id = 1 });
         articles.Add(new Article() { Title = title, Content = " cos tam cos tam cos tam tresc cos tam cos tam cos tam tresc", Id = 2 });
         Thread.Sleep(500);
         callback(articles);
     }));
     thread.Start();
 }
 public void GetAllArticles(GetArticlesCallback callback)
 {
     Thread thread = new Thread(new ThreadStart(() =>
     {
         List<Article> articles = new List<Article>();
         articles.Add(new Article() { Title = "cos tam", Content = " cos tam cos tam cos tam tresc cos tam cos tam cos tam tresc", Id = 1 });
         articles.Add(new Article() { Title = "cos tam 1", Content = " cos tam cos tam cos tam tresc cos tam cos tam cos tam tresc", Id = 2 });
         articles.Add(new Article() { Title = "cos tam 2", Content = " cos tam cos tam cos tam tresc cos tam cos tam cos tam tresc", Id = 3 });
         Thread.Sleep(500);
         callback(articles);
     }));
     thread.Start();
 }