void UpdatePolygon(PolygonShape polygon) { SolidColorBrush border = CreateColor(borderColor); SolidColorBrush fill = CreateColor(fillColor); int Thickness = Int32.Parse(textBoxThickness.Text); polygon.UpdateShape(fill, border, Thickness); }