Example #1
0
        private void b_ViewTime_Click(object sender, EventArgs e)
        {
            Number_Getter numGet = new Number_Getter(0, 53, WeekNumber.GetWeekNumber(DateTime.Now));

            numGet.ShowDialog();

            int      weekNum = numGet.Number;
            DateTime date    = WeekNumber.GetDateFromWeek(currentYear, weekNum);

            outputToTimesheet(date);
        }
Example #2
0
        private DateTime getRangeStart(DateTime date)
        {
            int weekNum = WeekNumber.GetWeekNumber(date);

            if (weekNum % 2 == 0)
            {
                --weekNum;
            }

            return(WeekNumber.GetDateFromWeek(date.Year, weekNum));
        }