Exemplo n.º 1
0
        public IActionResult Timeline()
        {
            ScheduleData data = new ScheduleData();
            List <ScheduleData.AppointmentData> scheduleData = data.GetScheduleData();
            List <ScheduleData.AppointmentData> timelineData = data.GetTimelineData();

            ViewBag.appointments = scheduleData.Concat(timelineData);
            return(View());
        }
        public ActionResult Timeline()
        {
            ScheduleData data = new ScheduleData();
            List <ScheduleData.AppointmentData> scheduleData = data.GetScheduleData();
            List <ScheduleData.AppointmentData> timelineData = data.GetTimelineData();

            ViewBag.appointments = scheduleData.Concat(timelineData);
            ViewBag.workDays     = new int[] { 0, 1, 2, 3, 4, 5 };
            return(View());
        }
Exemplo n.º 3
0
        public Scheduler()
        {
            accessToData = new ScheduleData();

            matchIDs        = new List <int>();
            matchTeam1Names = new List <string>();
            matchTeam2Names = new List <string>();
            List <int> team1IdTemp;
            List <int> team2IdTemp;

            accessToData.GetScheduleData(out matchIDs, out matchTimes, out team1IdTemp, out team2IdTemp);
            for (int i = 0; i < matchIDs.Count; i++)
            {
                matchTeam1Names.Add(accessToData.GetTeamName(team1IdTemp[i]));
                matchTeam2Names.Add(accessToData.GetTeamName(team2IdTemp[i]));
            }
        }