using System; using System.Drawing; namespace HRM.BO { /// /// /// public class ChartRecord : IDisposable { public ChartRecord() { } /// /// Top Left Corner of the specific employee /// private int _employeeCount = 0; public int EmployeeCount { get { return _employeeCount; } set { _employeeCount = value; } } /// /// The data of the employee /// /// /// The Top Left Corener of the employee Box /// private Rectangle _pos; public Rectangle EmployeePos { get { return _pos; } set { _pos = value; } } /// /// The record with all employee data /// private OrgData.OrgDetailsRow _employeeRecord; public OrgData.OrgDetailsRow EmployeeData { get { return _employeeRecord; } set { _employeeRecord = value; } } internal Rectangle CurrentLocation(int scale) { Rectangle r = new Rectangle((_pos.Left * scale / 100), (_pos.Top * scale / 100), (_pos.Width * scale / 100), (_pos.Height * scale / 100)); return r; } #region IDisposable Members public void Dispose() { } #endregion } }