Example #1
0
        public void updateCross()
        {
            string responseString2 = client.GetStringAsync(hostip + "/api/game/cross").Result;
            Cross  cross           = JsonConvert.DeserializeObject <Cross>(responseString2);

            map.setCross(cross);
            foreach (Control item in Controls)
            {
                if (item.Text == "cross")
                {
                    Controls.Remove(item);
                }
            }
            updateCrossinForm();
        }
Example #2
0
 public void setCross(Cross a)
 {
     this.cross = a;
 }