Пример #1
0
 private void G_NewPost(object sender, Post e)
 {
     // new post from group, send the content to the connected client
     _xcvr.Tx(new Message()
     {
         Post = e
     });
 }
 public void CreatePost(Post post)
 {
     this.posts.Add(post);
     this.posts.Save();
 }
 public void DeletePost(Post post)
 {
     this.posts.Delete(post);
     this.posts.Save();
 }