单个按键
Inheritance: BaseButton, IBaseButton
Exemplo n.º 1
0
 private static SingleButton GetSingleButtonFromJsonObject(Dictionary<string, object> objs)
 {
     var sb = new SingleButton()
     {
         key = objs["key"] as string,
         name = objs["name"] as string,
         type = objs["type"] as string
     };
     return sb;
 }
Exemplo n.º 2
0
        //
        // GET: /Menu/
        public ActionResult Index()
        {
            GetMenuResult reslt = new GetMenuResult();

            //初始化
            for (int i = 0; i < 3; i++)
            {
                var subButton = new SubButton();
                for (int j = 0; j < 5; j++)
                {
                    var singleButton = new SingleButton();
                    subButton.sub_button.Add(singleButton);
                }
            }

            return View(reslt);
        }