Пример #1
0
        /// <summary>
        /// tra ve gia tri tuan: tu tuan hien tai cho den tuan 52
        /// </summary>
        /// <remarks>
        /// Author:		Nguyen Minh Khoa G3
        /// Modified:	18-Apr-2011
        /// </remarks>
        /// <returns>intWeeks</returns>

        public int[] InitWeek()
        {
            clsCommon common         = new clsCommon();
            int       intCurrentWeek = common.GetInt(GetWeekSingle());

            if (intCurrentWeek < 52)
            {
                intCurrentWeek += 1;
            }
            int intArraySize = 53 - intCurrentWeek;

            int[] intWeeks = new int[intArraySize];
            int   i        = 0;

            while (intCurrentWeek <= 52)
            {
                intWeeks[i] = intCurrentWeek;
                i++;
                intCurrentWeek++;
            }
            return(intWeeks);
        }