public static CandidateSchedule Create() { if (singleton == null) { singleton = new CandidateSchedule(); } return(singleton); }
/******************************************************************************************/ /************************Calendar-Related**************************************************/ #region // needed for adding courses to the calendar private void dayView1_ResolveAppointments(object sender, Calendar.ResolveAppointmentsEventArgs args) { List <Calendar.Appointment> m_Apps = new List <Calendar.Appointment>(); foreach (Calendar.Appointment m_App in CandidateSchedule.Create().getCalendarItems()) { if ((m_App.StartDate >= args.StartDate) && (m_App.StartDate <= args.EndDate)) { m_Apps.Add(m_App); } } args.Appointments = m_Apps; }