Beispiel #1
0
        private void rule_viewer()
        {
            allRules = _context.Rules.ToList();
            foreach (Rule ev in allRules)
            {
                if ((ev.RegisteredDate - dt).TotalDays <= 30)
                {
                    rules.Add(ev);
                    grid_rule.Children.Clear();
                }
            }

            foreach (Rule e in rules)
            {
                DescriptionCard dc = new DescriptionCard();
                dc.title.Content     = e.Name;
                dc.descriptions.Text = "On " + e.RegisteredDate + " the event took place." + ". The number of attendees was " + ". The event took place at " + ". ";
                grid_rule.Children.Add(dc);
            }
        }
Beispiel #2
0
        private void mem_viewer()
        {
            allMembers = _context.Members.ToList();
            foreach (Member ev in allMembers)
            {
                if ((ev.RegisteredDate - dt).TotalDays <= 30)
                {
                    members.Add(ev);
                    grid_mem.Children.Clear();
                }
            }

            foreach (Member e in members)
            {
                DescriptionCard dc = new DescriptionCard();
                dc.title.Content     = e.FirstName;
                dc.descriptions.Text = "On " + e.RegisteredDate + " the event took place." + ". The number of attendees was " + ". The event took place at " + ". ";
                grid_mem.Children.Add(dc);
            }
        }
Beispiel #3
0
        private void pay_viewer()
        {
            allPays = _context.Payments.ToList();
            foreach (Payment ev in allPays)
            {
                if ((ev.PaidDate - dt).TotalDays <= 30)
                {
                    pays.Add(ev);
                    grid_pay.Children.Clear();
                }
            }

            foreach (Payment e in pays)
            {
                DescriptionCard dc = new DescriptionCard();
                dc.title.Content     = e.Type;
                dc.descriptions.Text = "On " + e.PaidDate + " the event took place." + ". The number of attendees was " + ". The event took place at " + ". ";
                grid_pay.Children.Add(dc);
            }
        }
Beispiel #4
0
        private void event_viewer()
        {
            allEdirEvents = _context.MahiberEvents.ToList();
            foreach (MahiberEvent ev in allEdirEvents)
            {
                if ((ev.Date - dt).TotalDays <= 30)
                {
                    edirEvents.Add(ev);
                    grid_event.Children.Clear();
                }
            }

            foreach (MahiberEvent e in edirEvents)
            {
                long            attendees = _context.Attendances.Where(a => a.EventId == e.Id).Count();
                DescriptionCard dc        = new DescriptionCard();
                dc.title.Content     = e.Name;
                dc.descriptions.Text = "On " + e.Date + " the event took place." + e.Description + ". The number of attendees was " + attendees + ". The event took place at " + e.Place + ". ";
                grid_event.Children.Add(dc);
            }
        }