private void UpdateListFromBox() { list.Clear(); foreach (var pnt in boxpoly.Points) { list.Add(pnt); } }