Esempio n. 1
0
        private void menuItem6_Click_1(object sender, EventArgs e)
        {
            //TODO: This should probably be evalulated at the time something happens.
            if (transactionManager.CanUndo())
            {
                //UndoMenuItem.Enabled = true;
                UndoMenuItem.Text = "Undo " + transactionManager.GetUndoMessage();
            }
            else
            {
                //UndoMenuItem.Enabled = false;
                UndoMenuItem.Text = "Undo";
            }

            if (transactionManager.CanRedo())
            {
                //RedoMenuItem.Enabled = true;
                RedoMenuItem.Text = "Redo " + transactionManager.GetRedoMessage();
            }
            else
            {
                //RedoMenuItem.Enabled = false;
                RedoMenuItem.Text = "Redo";
            }
        }