예제 #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Model.Map u = new Model.Map
            {
                Map_Site  = this.txtSite.Text.Trim(),
                Map_Phone = this.txtPhone.Text.Trim()
            };

            var       res = MapSvc.Edit(u);
            ReturnMsg rm  = res > 0
                ? new ReturnMsg()
            {
                Code    = StatusCode.OK,
                Message = "编辑用户信息成功",
                Data    = null
            }
                : new ReturnMsg()
            {
                Code    = StatusCode.Error,
                Message = "编辑用户信息失败",
                Data    = null
            };

            Session["Msg"] = rm; //用于传递执行信息的
            Response.Redirect("Map_List.aspx");
        }
예제 #2
0
 public Tile(char type,int xPoint, int yPoint , Map map )
 {
     _xPoint = xPoint;
     _yPoint = yPoint;
     Elem = PokeElem.None;
     Status = TileState.Unknow;
     this.MapContent = map;
     switch (type)
     {
         case 'G': _type = TileTypes.Grass; break;
         case 'M': _type = TileTypes.Mountain; break;
         case 'L': _type = TileTypes.Volcano; break;
         case 'A': _type = TileTypes.Water; break;
         case 'C': _type = TileTypes.Cave; break;
         default: break;
     }
 }
예제 #3
0
 public Pokedex(Map map)
 {
     _map = map;
 }