using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MetroGauges.Database.Enitys { public class BlockInfo:EntityBase { public long Id { get; set; } private string _Name; public string Name { get { return _Name; } set { _Name = value; OnPropertyChanged("Name"); } } public long Groupid { get; set; } public bool IsGroup { get; set; } public string Filepath { get; set; } //用户调整的最后位置 public double Locationx { get; set; } //用户调整的最后位置 public double Locationy { get; set; } public double Offsetx { get; set; } public double Offsety { get; set; } public int Istemplate { get; set; } private string m_ToolTip = "块位置以矩形外框左下角作为基点,点击右边加号添到图形区域,默认位置为最后调整位置"; public string ToolTip { get { return m_ToolTip; } set { m_ToolTip = value; OnPropertyChanged("ToolTip"); } } //private object m_PropertyGridData; //public object PropertyGridData //{ // get // { // return m_PropertyGridData; // } // set // { // m_PropertyGridData = value; // OnPropertyChanged("PropertyGridData"); // } //} private string m_ImageSouce; public string ImageSouce { get { return m_ImageSouce; } set { m_ImageSouce = value; this.OnPropertyChanged("ImageSouce"); } } public ObservableCollection FieldData { get; set; } public ObservableCollection Blocks { get; set; } public BlockInfo() { FieldData = new ObservableCollection(); Blocks = new ObservableCollection(); } } }