public static void ExecuteAction(Page page, Core.Action action) { try { if (action != null) { ActionRunner runner = new ActionRunner(); runner.Page = page; runner.Action = action.Clone(); runner.Execute(); } } catch (Exception ex) { //log.Error(ex); //((BasePage)this.Page).DisplayErrorAlert(ex); } }
void Button_Clicked(object sender, EventArgs e) { //log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); try { ActionRunner runner = new ActionRunner(); Core.Action action = Me.OnClick.Clone(); if (action != null) { runner.Page = this.Page; runner.Action = action; runner.Execute(); } } catch (Exception ex) { //log.Error(ex); //((BasePage)this.Page).DisplayErrorAlert(ex); } }