예제 #1
0
 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);
            }
        }