/// <summary> /// Initialize a new instance of the <see cref="Data"/> class. /// </summary> /// <param name="_Row">The row.</param> /// <param name="_DataTable">The data table.</param> public Data(Row _Row, DataTable _DataTable) { this.Row = _Row; this.DataTable = _DataTable; this.ID = GlobalID.CreateGlobalID(_DataTable.GetIndex() + 1, _DataTable.Count()); }
public Data GetDataWithID(int _ID) { int _InstanceID = GlobalID.GetInstanceID(_ID); return(this.Data[_InstanceID]); }
/// <summary> /// Get the instance identifier. /// </summary> /// <returns>The instance indentifier.</returns> public int GetInstanceID() { return(GlobalID.GetInstanceID(this.ID)); }