Esempio n. 1
0
        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;
        }
Esempio n. 2
0
            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;
            }
Esempio n. 3
0
            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;
            }