Files
Samuele Locatelli 37ac002965 Fix clone x PagInfo
2023-07-13 10:33:24 +02:00

49 lines
1011 B
C#

namespace SHERPA.BBM.UI
{
public class PagInfo
{
#region Public Properties
public int CurrPage { get; set; } = 1;
public int NumRec { get; set; } = 10;
#endregion Public Properties
#region Public Methods
public PagInfo Clone()
{
PagInfo clonedData = new PagInfo()
{
NumRec = this.NumRec,
CurrPage = this.CurrPage
};
return clonedData;
}
public override bool Equals(object? obj)
{
if (obj == null)
return false;
if (!(obj is PagInfo item))
return false;
if (NumRec != item.NumRec)
return false;
if (CurrPage != item.CurrPage)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
#endregion Public Methods
}
}