public void UpdatePoint(int id, string name, int newType) { var point = DatabaseHandler.GetPointsList().Find(a => a.id == id); point.name = name; point.type = DatabaseHandler.GetPointType(newType); PointsList.Items.Refresh(); }