Esempio n. 1
0
        /// <summary>
        /// Reverses the action of the most recent undo command.
        /// </summary>
        /// <param name="dependencyObject">The target of the redo operation.</param>
        public void Redo(object sender, GenericEventArgs genericEventArgs)
        {
            // Extract the specific arguments from the generic arguments
            TextBoxBase textBoxBase = (TextBoxBase)genericEventArgs.Arguments[0];

            // Reverses the action of the most recent undo command.
            textBoxBase.Redo();
        }
Esempio n. 2
0
        /// <summary>
        /// Reverses the action of the most recent undo command.
        /// </summary>
        /// <param name="dependencyObject">The target of the redo operation.</param>
        public void Redo(Object sender, GenericEventArgs genericEventArgs)
        {
            // Validate the parameters.
            if (sender == null)
            {
                throw new ArgumentNullException("sender");
            }
            if (genericEventArgs == null)
            {
                throw new ArgumentNullException("genericEventArgs");
            }

            // Extract the specific arguments from the generic arguments
            TextBoxBase textBoxBase = (TextBoxBase)genericEventArgs.Arguments[0];

            // Reverses the action of the most recent undo command.
            textBoxBase.Redo();
        }