예제 #1
0
        private bool InvokeClickAction()
        {
            if (OnClick != null || OnClickAction != null)
            {
                bool allowed = true;
                if (!string.IsNullOrWhiteSpace(SubmitScope))
                {
                    allowed = CurrentContext.Validate(SubmitScope);
                }

                if (allowed)
                {
                    if (OnClick != null)
                    {
                        LogManager.Logger.Clicked(Id, OnClick.Expression);
                        CurrentContext.JokeProviderInternal.OnTap();
                        OnClick.Execute();
                        return(true);
                    }

                    if (OnClickAction != null)
                    {
                        LogManager.Logger.Clicked(Id, OnClickAction.Expression);
                        CurrentContext.JokeProviderInternal.OnTap();
                        OnClickAction.Execute();
                        return(true);
                    }
                }
            }
            return(false);
        }
예제 #2
0
        protected virtual bool InvokeClick()
        {
            if (OnClick != null || OnClickAction != null)
            {
                CloseModalWindows();
                EndEditing();
            }

            bool allowed = true;

            if (!string.IsNullOrWhiteSpace(SubmitScope))
            {
                allowed = CurrentContext.Validate(SubmitScope);
            }

            if (allowed)
            {
                if (OnClick != null)
                {
                    LogManager.Logger.Clicked(Id, OnClick.Expression, Text);
                    CurrentContext.JokeProviderInternal.OnTap();
                    OnClick.Execute();
                    return(true);
                }

                if (OnClickAction != null)
                {
                    LogManager.Logger.Clicked(Id, OnClickAction.Expression, Text);
                    CurrentContext.JokeProviderInternal.OnTap();
                    OnClickAction.Execute();
                    return(true);
                }
            }
            return(false);
        }
예제 #3
0
        bool InvokeClickAction()
        {
            if (OnClick != null)
            {
                OnClick.Execute();
                return(true);
            }

            if (OnClickAction != null)
            {
                OnClickAction.Execute();
                return(true);
            }
            return(false);
        }
예제 #4
0
        protected virtual bool InvokeClickAction()
        {
            if (OnClick != null)
            {
                _view.PlaySoundEffect(SoundEffects.Click);
                OnClick.Execute();
                return(true);
            }

            if (OnClickAction != null)
            {
                _view.PlaySoundEffect(SoundEffects.Click);
                OnClickAction.Execute();
                return(true);
            }
            return(false);
        }
예제 #5
0
        protected virtual bool InvokeClick()
        {
            if (OnClick != null || OnClickAction != null)
            {
                CloseModalWindows();
                EndEditing();
            }

            if (OnClick != null)
            {
                OnClick.Execute();
                return(true);
            }

            if (OnClickAction != null)
            {
                OnClickAction.Execute();
                return(true);
            }
            return(false);
        }