示例#1
0
 public ActionResult stop(ArgBag arg)
 {
     if (bStarted)
     {
         threadTimer.Dispose();
     }
     return View();
 }
示例#2
0
 public ActionResult start(ArgBag arg)
 {
     if (!bStarted)
     {
         System.Threading.TimerCallback timerDelegate = new System.Threading.TimerCallback(main);
         threadTimer = new System.Threading.Timer(timerDelegate, null, dueTime, period);
         bStarted = true;
     }
     return View();
 }
示例#3
0
        public ActionResult callAction(int ID, ArgBag arg)
        {
            ActionRouting target = null;
            foreach (ActionRouting action in actionRoutingList)
            {
                if(ID == action.actionID)
                {
                    target = action;
                }
            }

            if(null != target)
            {
                return target.action(arg);
            }
            else
            {
                return null;
            }
        }
示例#4
0
文件: MVC.cs 项目: akiken/TetrisV0
        public ActionResult callAction(int controllerID, int actionID, ArgBag arg)
        {
            RouteBase target = null;
            foreach (RouteBase route in routing)
            {
                if (route.ID == controllerID)
                {
                    target = route;
                }
            }

            if (null != target)
            {
                return target.controller.callAction(actionID, arg);
            }
            else
            {
                return null;
            }
        }
示例#5
0
        public ActionResult callAction(int controllerID, int actionID, ArgBag arg)
        {
            RouteBase target = null;

            foreach (RouteBase route in routing)
            {
                if (route.ID == controllerID)
                {
                    target = route;
                }
            }

            if (null != target)
            {
                return(target.controller.callAction(actionID, arg));
            }
            else
            {
                return(null);
            }
        }
示例#6
0
 public ActionResult DefaultAction(ArgBag arg)
 {
     return View();
 }