private void applyNewProperty() { if (SelectedShapesCount < 1) { return; } // currently only support one selected shape if (SelectedShapesCount == 1) { DrawableBase shape = shapesList[selectedShapesIndexList[0]]; switch (shape.ShapeProperty.PropertyType) { case ShapePropertyType.IndicatorArrowProperty: shape.ShapeProperty = proCollector.GetIndicatorProperty(); break; case ShapePropertyType.StrokableProperty: shape.ShapeProperty = proCollector.GetStrokableProperty(); break; case ShapePropertyType.FillableProperty: shape.ShapeProperty = proCollector.GetFillableProperty(); break; case ShapePropertyType.RoundedRectProperty: shape.ShapeProperty = proCollector.GetRoundedRectProperty(); break; } } }