private void inputProvider_OnHover(object sender, EventArgs e) { var command = commandFactory.CreateCommand(CommandType.Hover); communicator.ExecuteCommand(command); if (OnCommandProcessed != null) { OnCommandProcessed(this, new ProcessedCommandArgs { CommandType = CommandType.Hover }); } }