Esempio n. 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);
        }
Esempio n. 2
0
 /// <summary>
 /// Causes the object to leave editing mode and commit the edited value.
 /// </summary>
 public void EndEdit()
 {
     _cacheObject = null;
 }
 /// <summary>
 /// Causes the object to leave editing mode and commit the edited value.
 /// </summary>
 public void EndEdit()
 {
     _cacheObject = null;
 }
Esempio n. 4
0
 /// <summary>
 /// Causes the object to enter editing mode.
 /// </summary>
 public void BeginEdit()
 {
     _cacheObject = new LocationWorkHourDto();
     _cacheObject.CopyFrom(this);
 }
 /// <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;
 }
 /// <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)));
 }