Ejemplo n.º 1
0
        protected virtual void OnButtonClickHandler(object sender, EventArgs e)
        {
            var button = sender as IButtonControl;
            var buttonName= button == null ? "??" : button.CommandName;
            using (var traceOperation = Logger.TraceOperation("DefaultButtons.OnButtonClickHandler: " + buttonName))
            {
                if (button != null)
                    ParentContentView.OnUserAction(sender, button.CommandName, "Click");

                var handler = base.Events[ClickButtonEventKey] as EventHandler;
                if (handler != null)
                    handler(this, e);

                traceOperation.IsSuccessful = true;
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnButtonClickHandler(object sender, EventArgs e)
        {
            var button     = sender as IButtonControl;
            var buttonName = button == null ? "??" : button.CommandName;

            if (button != null)
            {
                ParentContentView.OnUserAction(sender, button.CommandName, "Click");
            }

            var handler = base.Events[ClickButtonEventKey] as EventHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }