private void pageTitleToolStripMenuItem_Click(object sender, EventArgs e) { SelectTitleDialog dlgSelectTitle = new SelectTitleDialog(); dlgSelectTitle.ShowDialog(); if (dlgSelectTitle.DialogResult == DialogResult.OK) { builder.SetTitle(dlgSelectTitle.PageTitle); modifiedDocument = true; } }