private void OnSelectTemplate(StyleTemplate template) { if (template.Style is FillerStyle style) { ApplyStyle(style); } }
private void SelectTemplate(StyleTemplate template) { if (template.Style is CrosswalkStyle style) { ApplyStyle(style); } }
private void OnSelectTemplate(StyleTemplate template) { if (template.Style.Copy() is LineStyle style) { Rule.Style = style; Style.SelectedObject = Rule.Style.Type; Editor.RefreshItem(); ClearStyleProperties(); AddStyleProperties(); } }
private void OnSelectTemplate(StyleTemplate template) { if (template.Style.Copy() is FillerStyle newStyle) { newStyle.MedianOffset = EditObject.Style.MedianOffset; if (newStyle is ISimpleFiller newSimple && EditObject.Style is ISimpleFiller oldSimple) { newSimple.Angle = oldSimple.Angle; } EditObject.Style = newStyle; Style.SelectedObject = EditObject.Style.Type; RefreshItem(); ClearStyleProperties(); AddStyleProperties(); } }
private void PopupOnSelectTemplate(StyleTemplate template) { ClosePopup(); OnSelect?.Invoke(template); }
public void EditTemplate(StyleTemplate template) { var editor = SelectEditor <TemplateEditor>(); editor?.UpdateEditor(template); }
public void EditStyleTemplate(StyleTemplate template, bool editName = true) => EditTemplate <StyleTemplateEditor, StyleTemplate>(template, editName);
private void OnTemplateSelect(StyleTemplate template) { OnSelectTemplate?.Invoke(template); ClosePopup(); }