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(); }
public void setCross(Cross a) { this.cross = a; }