public void UpdateEditMenu() { undoToolStripMenuItem.Enabled = txtPage.CanUndo; redoToolStripMenuItem.Enabled = txtPage.CanRedo; }