public void editPost(Post p) { //TODO: UI EditView e = new EditView(p, RealData.getRepliesFromPost(p).ToList()); e.ShowDialog(); if (e.save) { if (e.postEditor.validate()) { p.Text = e.postEditor.Text.Text; if (RealData.editPost(p)) { MessageBox.Show("saved"); } } } FakeData.editPost(p); }
public void showPostsReplies(Post p) { new ReplyView(RealData.getRepliesFromPost(p)).ShowDialog(); }