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); }
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); }
bool InvokeClickAction() { if (OnClick != null) { OnClick.Execute(); return(true); } if (OnClickAction != null) { OnClickAction.Execute(); return(true); } return(false); }
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); }
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); }