private void addButton_Click(object sender, System.EventArgs e) { using(PostForm form = new PostForm(parentBlog)) { if (form.ShowDialog(this) == DialogResult.OK) { PopulatePostList(); } } }