/* Copyright 2012 Justin LeCheminant This file is part of WindowsFormsCalendar. indowsFormsCalendar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. indowsFormsCalendar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with indowsFormsCalendar. If not, see . */ using System; using System.Collections.Generic; using System.Text; namespace WindowsFormsCalendar { /// /// Holds data of a Calendar Loading Items of certain date range /// public class CalendarLoadEventArgs : EventArgs { #region Fields private Calendar _calendar; private DateTime _dateStart; private DateTime _dateEnd; #endregion /// /// Initializes a new instance of the class. /// /// The calendar. /// The date start. /// The date end. public CalendarLoadEventArgs(Calendar calendar, DateTime dateStart, DateTime dateEnd) { _calendar = calendar; _dateEnd = dateEnd; _dateStart = dateStart; } #region Props /// /// Gets the calendar that originated the event /// public Calendar Calendar { get { return _calendar; } } /// /// Gets the start date of the load /// public DateTime DateStart { get { return _dateStart; } set { _dateStart = value; } } /// /// Gets the end date of the load /// public DateTime DateEnd { get { return _dateEnd; } } #endregion } }