private void ApplyStyle(FillerStyle style) { EditObject.Style.Value = style.CopyStyle(); Style.SelectedObject = EditObject.Style.Value.Type; AfterStyleChanged(); }
private void ApplyStyle(FillerStyle style) { var newStyle = style.CopyFillerStyle(); newStyle.MedianOffset = EditObject.Style.MedianOffset; if (newStyle is IRotateFiller newSimple && EditObject.Style is IRotateFiller oldSimple) { newSimple.Angle = oldSimple.Angle; } EditObject.Style = newStyle; Style.SelectedObject = EditObject.Style.Type; RefreshItem(); ClearStyleProperties(); AddStyleProperties(); }
private void ApplyStyle(FillerStyle style) { if (style.Type == Manager.Style.StyleType.FillerChevron && !EarlyAccess.CheckFunctionAccess(Utilities.EnumDescription(style.Type))) { return; } var newStyle = style.CopyFillerStyle(); newStyle.MedianOffset = EditObject.Style.MedianOffset; if (newStyle is IRotateFiller newSimple && EditObject.Style is IRotateFiller oldSimple) { newSimple.Angle = oldSimple.Angle; } EditObject.Style = newStyle; Style.SelectedObject = EditObject.Style.Type; RefreshItem(); ClearStyleProperties(); AddStyleProperties(); }