public void ApplyStyle(LineStyle style) { Rule.Style.Value = style.CopyStyle(); Style.SelectedObject = Rule.Style.Value.Type; AfterStyleChanged(); }
private void ApplyStyle(LineStyle style) { if ((Rule.Style.Type & Manager.Style.StyleType.GroupMask) != (style.Type & Manager.Style.StyleType.GroupMask)) { return; } Rule.Style = style.CopyStyle(); Style.SelectedObject = Rule.Style.Type; Editor.RefreshItem(); ClearStyleProperties(); AddStyleProperties(); SetEven(); }