Example #1
0
 public ReportSection(User admin, Event ev)
 {
     InitializeComponent();
     _admin             = admin;
     _event             = ev;
     _logicPost         = new PostLogic();
     _getAllPostByEvent = _logicPost.GetAllByEvent(_event);
     lblWelkom.Text     = $"Welkom bij de rapporten overzicht,  {_admin.Name} {_admin.Surname}";
 }
Example #2
0
 private void TimeLine_Load(object sender, EventArgs e)
 {
     _posts = _logic.GetAllByEvent(_event).Where(p => p.Visible).OrderByDescending(x => x.Date).ToList();
     LoadAllPosts(_posts);
 }