61 lines
1.6 KiB
C#
61 lines
1.6 KiB
C#
using Core;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LiMan.GLS
|
|
{
|
|
public class SelectGLS : SelectData
|
|
{
|
|
#region Public Properties
|
|
|
|
public string ApplicazioneSel { get; set; } = "";
|
|
public string InstallazioneSel { get; set; } = "";
|
|
|
|
public bool OnlyActive { get; set; } = false;
|
|
public bool OnlyUnlock { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Inizializzazione con periodo e arrotondamento
|
|
/// </summary>
|
|
/// <param name="minRound"></param>
|
|
/// <param name="numDayPrev"></param>
|
|
/// <returns></returns>
|
|
public static new SelectGLS Init(int minRound, int numDayPrev)
|
|
{
|
|
var selD = SelectData.Init(minRound, numDayPrev);
|
|
return new SelectGLS() { DateStart = selD.DateStart, DateEnd = selD.DateEnd };
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is SelectGLS item))
|
|
return false;
|
|
|
|
if (OnlyActive != item.OnlyActive)
|
|
return false;
|
|
if (OnlyUnlock != item.OnlyUnlock)
|
|
return false;
|
|
if (ApplicazioneSel != item.ApplicazioneSel)
|
|
return false;
|
|
if (InstallazioneSel != item.InstallazioneSel)
|
|
return false;
|
|
|
|
return ((SelectData)this).Equals((SelectData)obj);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
}
|