Пример #1
0
        /// <summary>
        /// Copies this instance.
        /// </summary>
        /// <returns>A <see cref="Telerik.Windows.Controls.ScheduleView.IAppointment"/></returns>
        public IAppointment Copy()
        {
            var newDto = new LocationWorkHourDto();

            newDto.CopyFrom(this);
            return(newDto);
        }
Пример #2
0
 /// <summary>
 /// Causes the object to leave editing mode and commit the edited value.
 /// </summary>
 public void EndEdit()
 {
     _cacheObject = null;
 }
Пример #3
0
 /// <summary>
 /// Causes the object to leave editing mode and commit the edited value.
 /// </summary>
 public void EndEdit()
 {
     _cacheObject = null;
 }
Пример #4
0
 /// <summary>
 /// Causes the object to enter editing mode.
 /// </summary>
 public void BeginEdit()
 {
     _cacheObject = new LocationWorkHourDto();
     _cacheObject.CopyFrom(this);
 }
Пример #5
0
 /// <summary>
 /// Copies this instance.
 /// </summary>
 /// <returns>A <see cref="Telerik.Windows.Controls.ScheduleView.IAppointment"/></returns>
 public IAppointment Copy()
 {
     var newDto = new LocationWorkHourDto ();
     newDto.CopyFrom ( this );
     return newDto;
 }
Пример #6
0
 /// <summary>
 /// Causes the object to enter editing mode.
 /// </summary>
 public void BeginEdit()
 {
     _cacheObject = new LocationWorkHourDto ();
     _cacheObject.CopyFrom ( this );
 }
 private static void RemoveLocationWorkHour(LocationWorkHourDto dto, LocationOperationSchedule operationSchedule, LocationWorkHour workHour)
 {
     operationSchedule.RemoveWorkHour(workHour);
 }
 private static void ChangeLocationWorkHour(LocationWorkHourDto dto, LocationOperationSchedule operationSchedule, LocationWorkHour workHour)
 {
     RemoveLocationWorkHour(dto, operationSchedule, workHour);
     AddLocationWorkHour(dto, operationSchedule);
 }
 private static void AddLocationWorkHour(LocationWorkHourDto dto, LocationOperationSchedule operationSchedule)
 {
     operationSchedule.AddWorkHour(new LocationWorkHour(dto.DayOfWeek, new TimeRange(dto.StartTime, dto.EndTime)));
 }