Aggiornato gestione AGBOptionText
This commit is contained in:
@@ -3,17 +3,55 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static WebWindowComplex.Json.WindowConst;
|
||||
|
||||
namespace WebWindowComplex.Models
|
||||
{
|
||||
//public class AGBOptionText : AGBOption
|
||||
//{
|
||||
// #region Public Constructors
|
||||
|
||||
// public AGBOptionText(ParametriOpzioniParametri HdwOptionParam) : base(HdwOptionParam)
|
||||
// {
|
||||
// m_Type = HdwOptionTypes.TEXT;
|
||||
// m_sValue = HdwOptionParam.ValoreCorrente;
|
||||
// }
|
||||
|
||||
// #endregion Public Constructors
|
||||
|
||||
// #region Public Properties
|
||||
|
||||
// public string sValue
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return m_sValue;
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// m_sValue = value;
|
||||
// }
|
||||
// }
|
||||
|
||||
// #endregion Public Properties
|
||||
|
||||
// #region Private Fields
|
||||
|
||||
// private string m_sValue;
|
||||
|
||||
// #endregion Private Fields
|
||||
//}
|
||||
|
||||
public class AGBOptionText : AGBOption
|
||||
{
|
||||
#region Public Constructors
|
||||
|
||||
public AGBOptionText(ParametriOpzioniParametri HdwOptionParam) : base(HdwOptionParam)
|
||||
{
|
||||
m_Type = HDWOPTIONTYPES.TEXT;
|
||||
m_sValue = HdwOptionParam.ValoreCorrente;
|
||||
m_Type = HwOptionTypes.TEXT;
|
||||
foreach (var Value in HdwOptionParam.Opzioni)
|
||||
m_ValueList.Add(Value.Valore);
|
||||
m_sValue = m_ValueList.FirstOrDefault(x => x == HdwOptionParam.ValoreCorrente) ?? "";
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
@@ -32,12 +70,22 @@ namespace WebWindowComplex.Models
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> ValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ValueList;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private string m_sValue;
|
||||
private List<string> m_ValueList = new List<string>();
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user