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