コード例 #1
0
ファイル: ActionRunner.cs プロジェクト: dolani/CodeTorch
 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);
     }
 }
コード例 #2
0
ファイル: Button.cs プロジェクト: dolani/CodeTorch
        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);
            }
        }
コード例 #3
0
 protected override void OnTapped()
 {
     base.OnTapped();
     ActionRunner.ExecuteAction(this.Page, Me.OnTapped);
 }
コード例 #4
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     ActionRunner.ExecuteAction(this.Page, Me.OnDisappearing);
 }
コード例 #5
0
 void SwitchCell_OnChanged(object sender, ToggledEventArgs e)
 {
     ActionRunner.ExecuteAction(this.Page, Me.OnChanged);
 }
コード例 #6
0
ファイル: EntryCell.cs プロジェクト: dolani/CodeTorch
 void EntryCell_Completed(object sender, EventArgs e)
 {
     ActionRunner.ExecuteAction(this.Page, Me.OnCompleted);
 }