コード例 #1
0
 private WeekDay GetCopy(WeekDay weekDay)
 {
     return new WeekDay()
     {
         Day = weekDay.Day,
         IsActive = weekDay.IsActive,
         StartTime = weekDay.StartTime,
         EndTime = weekDay.EndTime
     };
 }
コード例 #2
0
        public static string BuildWeekDayString(WeekDay weekDay)
        {
            if (weekDay == null)
                return String.Empty;

            return weekDay.Day.ToString() + weekDay.EndTime.ToString() + weekDay.StartTime.ToString() + weekDay.IsActive.ToString();
        }
コード例 #3
0
 public WeekDayViewModel(WeekDay weekDay)
 {
     this.Model = weekDay;
 }