Exemple #1
0
        protected override void OnClick()
        {
            base.OnClick();
            if (!NotificationAction.HasRemoteInputs)
            {
                NotificationAction.Invoke();
            }
            else
            {
                NotificationAction?.Parent?.ReplyHandler?.GetReplyFromUser().ContinueWith(task =>
                {
                    if (!task.IsCompleted || string.IsNullOrEmpty(task.Result))
                    {
                        return;
                    }

                    NotificationAction.Reply(task.Result);
                });
            }
        }