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

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

            _CopyTo(obj);

            return(obj);
        }
 /// <summary>
 /// Comparer for two <c>DriveTimeBrakes</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 _DriveTimeBreakComparer(DriveTimeBreak break1, DriveTimeBreak break2)
 {
     if (break1.TimeInterval > break2.TimeInterval)
         return 1;
     else if (break1.TimeInterval < break2.TimeInterval)
         return -1;
     else
         return 0;
 }