Example #1
0
        private void ExecuteActions()
        {
            foreach (ActionCommand command in Action.Commands)
            {
                IActionCommandStrategy s = ActionCommandStrategyFactory.CreateFromType(command.Type);
                s.Page    = this.Page;
                s.Command = command;
                // s.Transaction = tran;

                s.ExecuteCommand();
            }
        }
Example #2
0
        internal void Execute()
        {
            //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required))
            //{

            foreach (ActionCommand command in Action.Commands)
            {
                IActionCommandStrategy s = ActionCommandStrategyFactory.CreateFromType(command.Type);
                s.Page    = this.Page;
                s.IPage   = this.Page as IMobilePage;
                s.Command = command;
                // s.Page = this.Page;
                // s.Command = command;
                // s.Transaction = tran;

                s.ExecuteCommand();
            }

            //    scope.Complete();
            //}
        }