/// <summary>
        /// Clones the <c>TimeWindowBreak</c> object.
        /// </summary>
        /// <returns>Cloned object.</returns>
        public override object Clone()
        {
            var obj = new WorkTimeBreak();

            _CopyTo(obj);

            return(obj);
        }
        /// <summary>
        /// Clones the <c>TimeWindowBreak</c> object.
        /// </summary>
        /// <returns>Cloned object.</returns>
        public override object Clone()
        {
            var obj = new WorkTimeBreak();
            _CopyTo(obj);

            return obj;
        }
 /// <summary>
 /// Comparer for two <c>WorkTimeBrakes</c>.
 /// </summary>
 /// <param name="break1">First <c>Brake</c>.</param>
 /// <param name="break2">Second <c>Brake</c>.</param>
 /// <returns>Result of comapring. Breaks are comapred by timeinterval.</returns>
 private static int _WorkTimeBreakComparer(WorkTimeBreak break1, WorkTimeBreak break2)
 {
     if (break1.TimeInterval > break2.TimeInterval)
         return 1;
     else if (break1.TimeInterval < break2.TimeInterval)
         return -1;
     else
         return 0;
 }