Esempio n. 1
0
        public object Clone()
        {
            WorkHours retVal = new WorkHours();

            for (int i = 0; i < WorkRanges.Length; i++)
            {
                if (WorkRanges[i] != null)
                {
                    WorkRange range = new WorkRange(WorkRanges[i].Start, WorkRanges[i].End, WorkRanges[i].OverTime);

                    retVal.WorkRanges[i] = range;
                }
            }

            return(retVal);
        }
Esempio n. 2
0
        public object Clone()
        {
            WorkHours retVal = new WorkHours();
            for(int i = 0; i < WorkRanges.Length; i++)
            {
                if(WorkRanges[i] != null)
                {
                    WorkRange range = new WorkRange(WorkRanges[i].Start, WorkRanges[i].End, WorkRanges[i].OverTime);

                    retVal.WorkRanges[i] = range;
                }
            }

            return retVal;
        }