123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Media;
- namespace SAGA.Models.Graphs
- {
- public class GElement
- {
- public GElement()
- {
- ElementType = GetElementType();
- ElementColor = Colors.Black;
- }
- protected virtual string GetElementType()
- {
- return "基础类型";
- }
- /// <summary>
- /// 关联Id
- /// </summary>
- public string Id { get; internal set; }
- public string Name { get; set; } = string.Empty;
- /// <summary>
- /// 元素类型
- /// </summary>
- public string ElementType { get; private set; }
- public Color ElementColor { get; set; }
- /// <summary>
- /// 关联数据
- /// </summary>
- public object RefData { get; set; }
- public void SetId(string id)
- {
- Id = id;
- }
- }
- }
|