namespace HydroUI { public interface IBaseViewModel { [Description("对象的ID唯一标识")] [DisplayName(" 编号 ")] string ID { get; set; } bool Selected { get; set; } bool Hovered { get; set; } [DisplayName("位置信息")] PointF Position { get; set; }//= new PointF(0, 0); String regionName { get; set; }//= null; [Description("X坐标")] [DisplayName("X坐标")] [Browsable(true)] float X { get; set; } [Description("Y坐标")] [DisplayName("Y坐标")] [Browsable(true)] float Y { get; set; } [Description("标高")] [DisplayName("标高")] [Browsable(true)] float Elev { get; set; } [Description("对象的等级")] [DisplayName("级别")] int Level { get; set; } [Description("对象的等级")] [DisplayName("是否显示")] bool Visible { get; set; } MapObjectType Type { get; }// { get { return this.GetTypeString(); } } // [Description("ID类型")] [DisplayName("ID类型")] string IDType { get; } MapObjectType GetTypeString(); TagList Tags { get; set; } bool isNode(); } }