public static LeaveDate Make(MedicalStaff staff, DateTime date)
        {
            LeaveDate leaveDate = new LeaveDate();

            leaveDate.Owner = staff;
            leaveDate.Date  = date.Date;
            return(leaveDate);
        }
        public override void Load()
        {
            DatabaseQuery query = new DatabaseQuery(Database.Tables.LEAVE_DATES);

            query.Add(Database.Tables.LeaveDates.Date);
            query.Add(Database.Tables.LeaveDates.StaffId);

            MySqlDataReader reader = DoLoad(query);

            if (Loaded)
            {
                Date  = reader.GetDateTime(0);
                Owner = StaffsManager.GetMedicalStaff(reader.GetInt32(1));
                StaffsManager.Add(this);
            }

            reader.Close();
        }