/// <summary> /// Method used for handling explicit update events. /// </summary> public override void UpdateView(object source, EventArgs e) { this.flowLayoutPanel.Controls.Clear(); foreach (Model.MapObject obj in Client.Instance.Map.GetAllOthersAtLocation(Client.Instance.Selected)) { OtherObject otherObject = new OtherObject(obj); this.flowLayoutPanel.Controls.Add(otherObject); } }
public Select(string title, List<Model.MapObject> mapObjects) { InitializeComponent(); this.Text = title + " | Lost Colonies of Guernsey"; this.MapObjects = mapObjects; foreach (Model.MapObject obj in this.MapObjects) { OtherObject moveObject = new OtherObject(obj); this.flowLayoutPanel.Controls.Add(moveObject); } }