using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static WebWindowTest.Json.WindowConst; namespace WebWindowTest { public class ItemTable { /// /// Tipo di area /// private AreaTypes m_type; public AreaTypes Type { get { return m_type; } set { m_type = value; } } /// /// Descrizione /// private string m_desc; public string Desc { get { return m_desc; } set { m_desc = value; } } /// /// Numero di riga nell'albero gerarchico /// private int m_row; public int Row { get { return m_row; } set { m_row = value; } } /// /// Numero di colonna nell'albero gerarchico /// private int m_col; public int Col { get { return m_col; } set { m_col = value; } } /// /// Indica l'indice rispetto al vettore del tipo corrispondente /// Se non è uno split/sash/fill vale -1 /// private int m_indexItem; public int IndexItem { get { return m_indexItem; } set { m_indexItem = value; } } /// /// Indica il numero di figli /// Se non ha figli vale -1 /// private int m_numChild; public int NumChild { get { return m_numChild; } set { m_numChild = value; } } public ItemTable(AreaTypes elementType, string s_description, int n_row, int n_col, int n_numItem, int n_numChild) { Type = elementType; m_desc = s_description; Row = n_row; Col = n_col; IndexItem = n_numItem; NumChild = n_numChild; } } }