private void UpdatePointsButton_Click(object sender, EventArgs e) { service.Points = pointsFactory.CreateRandomPoints(); PointListBox.Items.Clear(); for (var i = 0; i < service.Points.Count; i++) { PointListBox.Items.Add($"Point {i}: {service.Points[i].ToString()}"); } }