public void SetCode(string code, string hours, DateTime day, DateTime start, int codeRowIndex) { codeRow[] c = getDayFromDate(day).codes; codeRow cr = c[codeRowIndex]; cr.hours = hours; cr.code = code; }
public void SetCode(int index, string code, string hours) { if (index >= ROWS_PER_DAY) { return; } codeRow c = codes[index]; c.code = code; c.hours = hours; }
public void AddCode(string code, string hours) { if (rowCount >= ROWS_PER_DAY) { Debug.WriteLine("Max rows exceeded"); return; } codeRow c = this.codes[rowCount]; c.code = code; c.hours = hours; ++rowCount; }