private bool _IsConnected;          // Connection status

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="model">Assoc CalendarModel</param>
        /// <param name="timeLineView">Assoc TimeLineView</param>
        public ModelTimeLineViewConnector(CalendarModel model, TimeLineView timeLineView)
        {
            _Model = model;
            _View = timeLineView;
        }
        private bool _IsConnected;          // Connection status

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="model">Assoc CalendarModel</param>
        /// <param name="monthView">Assoc MonthView</param>
        public ModelMonthViewConnector(CalendarModel model, MonthView monthView)
        {
            _Model = model;
            _View = monthView;
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the Day class.
 /// </summary>
 /// <param name="dayDate"></param>
 /// <param name="calendar"></param>
 public Day(DateTime dayDate, CalendarModel calendar)
 {
     _DayDate = dayDate;
     _Calendar = calendar;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the Month class.
 /// </summary>
 /// <param name="year"></param>
 /// <param name="month"></param>
 public Month(CalendarModel calendar, int year, int month)
 {
     _CalendarModel = calendar;
     _Year = year;
     _Month = month;
 }
        private bool _IsConnected;          // Connection status

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="model">Assoc CalendarModel</param>
        /// <param name="weekDayView">Assoc WeekDayView</param>
        public ModelWeekDayViewConnector(CalendarModel model, WeekDayView weekDayView)
        {
            _Model = model;
            _View = weekDayView;
        }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the Year class.
 /// </summary>
 /// <param name="year"></param>
 /// <param name="calendarModel"></param>
 public Year(int year, CalendarModel calendarModel)
 {
     _Year = year;
     _CalendarModel = calendarModel;
 }
Exemple #7
0
        protected void SetUp()
        {
            Model = new CalendarModel();

            _CalendarView = new CalendarView();
            _CalendarView.CalendarModel = Model;

            _Importer = new IcsImporter(Model);
            _Exporter = new IcsExporter(Model);

            _MemoryStream = new MemoryStream();
            _StreamWriter = new StreamWriter(_MemoryStream);
            _StreamReader = new StreamReader(MemoryStream);
        }
        private int _ViewState;             // View refresh state

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="model">Assoc CalendarModel</param>
        /// <param name="yearView">Assoc YearView</param>
        public ModelYearViewConnector(CalendarModel model, YearView yearView)
        {
            _Model = model;
            _View = yearView;
        }