/// <summary> /// Handles the Execute event of the BaseCommand control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param> private static void BaseCommand_Execute(object sender, EventArgs e) { BaseCommand command = sender as BaseCommand; if (command != null) { command.OnExecute(); } }
/// <summary> /// Handles the Execute event of the BaseCommand control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param> private static void BaseCommand_Execute(object sender, EventArgs e) { BaseCommand command = sender as BaseCommand; command?.OnExecute(); }