Ejemplo n.º 1
0
 public static CandidateSchedule Create()
 {
     if (singleton == null)
     {
         singleton = new CandidateSchedule();
     }
     return(singleton);
 }
Ejemplo n.º 2
0
        /******************************************************************************************/


        /************************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;
        }