using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hydro.Model { public abstract class VisualObject { public VisualObject() { } public VisualObject(VisualObject obj) { this.ID = obj.ID; this.Name = obj.Name; this.ObjectType = obj.ObjectType; this.Tag = obj.Tag; } /// /// /// public string ID { get; set; } /// /// /// public string Name { get; set; } /// /// /// public eObjectType ObjectType { get; set; } /// /// /// public object Tag { get; set; } /// /// /// public bool IsNode { get { if (ObjectType == eObjectType.Node) return true; else return false; } } /// /// /// public bool IsLink { get { if (ObjectType == eObjectType.Link) return true; else return false; } } } }