Пример #1
0
        private void UpdateWorkingHourDisplay()
        {
            m_DayView.WorkStart.Set(m_WorkWeek.WorkDay().StartOfDayInHours());
            m_DayView.WorkEnd.Set(m_WorkWeek.WorkDay().EndOfDayInHours());

            m_DayView.LunchStart.Set(m_WorkWeek.WorkDay().StartOfLunchInHours());
            m_DayView.LunchEnd.Set(m_WorkWeek.WorkDay().EndOfLunchInHours());
        }
Пример #2
0
        private void UpdateWorkingHourDisplay()
        {
            double startOfDay = m_WorkWeek.WorkDay().StartOfDayInHours();

            m_DayView.WorkingHourStart   = (int)startOfDay;
            m_DayView.WorkingMinuteStart = (int)((startOfDay - (int)startOfDay) * 60);

            double endOfDay = m_WorkWeek.WorkDay().EndOfDayInHours();

            m_DayView.WorkingHourEnd   = (int)endOfDay;
            m_DayView.WorkingMinuteEnd = (int)((endOfDay - (int)endOfDay) * 60);
        }