public void SendOperatorPressed(Operator op) { OperatorPressed?.Invoke(this, new OperatorPressedEventArgs { Operator = op }); }
private void HandleOperatorButtonPressed(object param) { var val = (Operator)Enum.Parse(typeof(Operator), param.ToString()); OperatorPressed?.Invoke(this, new OperatorPressedEventArgs(val)); }