private void Control_Click(object sender, EventArgs e) { Console.WriteLine("Invoking click command"); var command = PressedEffect.GetCommand(Element); command?.Execute(PressedEffect.GetCommandParameter(Element)); }
/// <summary> /// Invoke the command if there is one /// </summary> private void HandleLongClick() { var command = PressedEffect.GetLongClickCommand(Element); command?.Execute(PressedEffect.GetCommandParameter(Element)); }