| | |
| | | } |
| | | #endregion |
| | | #region 颜色分级(辅助) |
| | | Colour _NodeColour |
| | | public Colour NodeColour |
| | | { |
| | | get |
| | | set |
| | | { |
| | | var type = value.Type; |
| | | value.isChoosed = true; |
| | | _Template?.Colours?.RemoveAll(cl => cl.Type == type); |
| | | _Template.Colours.Add(value); |
| | | mapOption.ColourNode = type; |
| | | } |
| | | private get |
| | | { |
| | | return _Template?.Colours?.FirstOrDefault(cl => cl.isChoosed && cl.Type == mapOption.ColourNode); |
| | | } |
| | | } |
| | | Colour _LinkColour |
| | | public Colour LinkColour |
| | | { |
| | | get |
| | | set |
| | | { |
| | | var type = value.Type; |
| | | value.isChoosed = true; |
| | | _Template?.Colours?.RemoveAll(cl => cl.Type == type); |
| | | _Template.Colours.Add(value); |
| | | mapOption.ColourLink = type; |
| | | } |
| | | private get |
| | | { |
| | | return _Template?.Colours?.FirstOrDefault(cl => cl.isChoosed && cl.Type == mapOption.ColourLink); |
| | | } |