private void bPostData_Click(object sender, EventArgs e) { using (PostDataEditor editor = new PostDataEditor()) { editor.PostData = CurrentVariable.PostData; if (editor.ShowDialog(this) == DialogResult.OK) { CurrentVariable.PostData = editor.PostData; } } }