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}"; }
private void TimeLine_Load(object sender, EventArgs e) { _posts = _logic.GetAllByEvent(_event).Where(p => p.Visible).OrderByDescending(x => x.Date).ToList(); LoadAllPosts(_posts); }