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); } }
protected override void OnTapped() { base.OnTapped(); ActionRunner.ExecuteAction(this.Page, Me.OnTapped); }
protected override void OnDisappearing() { base.OnDisappearing(); ActionRunner.ExecuteAction(this.Page, Me.OnDisappearing); }
void SwitchCell_OnChanged(object sender, ToggledEventArgs e) { ActionRunner.ExecuteAction(this.Page, Me.OnChanged); }
void EntryCell_Completed(object sender, EventArgs e) { ActionRunner.ExecuteAction(this.Page, Me.OnCompleted); }