Пример #1
0
        private void ApplyStyle(FillerStyle style)
        {
            EditObject.Style.Value = style.CopyStyle();
            Style.SelectedObject   = EditObject.Style.Value.Type;

            AfterStyleChanged();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }