添加项目文件。
This commit is contained in:
96
MetroGauges/Database/Enitys/BlockInfo.cs
Normal file
96
MetroGauges/Database/Enitys/BlockInfo.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
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<FieldInfo> FieldData { get; set; }
|
||||
public ObservableCollection<BlockInfo> Blocks { get; set; }
|
||||
|
||||
public BlockInfo()
|
||||
{
|
||||
FieldData = new ObservableCollection<FieldInfo>();
|
||||
Blocks = new ObservableCollection<BlockInfo>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user