121 lines
2.5 KiB
C#
121 lines
2.5 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Tipo di area
|
|
/// </summary>
|
|
private AreaTypes m_type;
|
|
public AreaTypes Type
|
|
{
|
|
get
|
|
{
|
|
return m_type;
|
|
}
|
|
set
|
|
{
|
|
m_type = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Descrizione
|
|
/// </summary>
|
|
private string m_desc;
|
|
public string Desc
|
|
{
|
|
get
|
|
{
|
|
return m_desc;
|
|
}
|
|
set
|
|
{
|
|
m_desc = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Numero di riga nell'albero gerarchico
|
|
/// </summary>
|
|
private int m_row;
|
|
public int Row
|
|
{
|
|
get
|
|
{
|
|
return m_row;
|
|
}
|
|
set
|
|
{
|
|
m_row = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Numero di colonna nell'albero gerarchico
|
|
/// </summary>
|
|
private int m_col;
|
|
public int Col
|
|
{
|
|
get
|
|
{
|
|
return m_col;
|
|
}
|
|
set
|
|
{
|
|
m_col = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Indica l'indice rispetto al vettore del tipo corrispondente
|
|
/// Se non è uno split/sash/fill vale -1
|
|
/// </summary>
|
|
private int m_indexItem;
|
|
public int IndexItem
|
|
{
|
|
get
|
|
{
|
|
return m_indexItem;
|
|
}
|
|
set
|
|
{
|
|
m_indexItem = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Indica il numero di figli
|
|
/// Se non ha figli vale -1
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|