private void FillEdge(MarkupLineSelectPropertyPanel panel, Action <ILinePartEdge> action, ILinePartEdge value) { if (panel == null) { return; } panel.OnSelectChanged -= action; panel.Clear(); panel.AddRange(Editor.SupportPoints); panel.SelectedObject = value; if (Settings.ShowPanelTip && Line.IsSupportRules) { panel.isVisible = true; panel.EnableControl = Editor.CanDivide; } else { panel.EnableControl = true; panel.isVisible = Editor.CanDivide; } panel.OnSelectChanged += action; }
private void FillEdge(MarkupLineSelectPropertyPanel panel, Action <ILinePartEdge> action, ILinePartEdge value) { if (panel == null) { return; } panel.OnSelectChanged -= action; panel.Clear(); panel.AddRange(Editor.SupportPoints); panel.SelectedObject = value; panel.isVisible = Editor.CanDivide; panel.OnSelectChanged += action; }