Example #1
0
 public MyDate(byte day, byte month, int year)
 {
     Validate(day, month, year);
     _dateStruct = new MyDateStruct(day, month, year);
 }
Example #2
0
        /// <summary>
        /// Операция инкремента даты по дням
        /// </summary>
        /// <param name="days">Число дней</param>
        public void AddDays(int days)
        {
            var newDate = GetDateByDays(GetDaysCount() + days);

            _dateStruct = newDate;
        }