public TimeLine(User user, Event ev) { InitializeComponent(); _admin = user; _event = ev; _logic = new PostLogic(); _reportContext = new ReportOracleContext(); }
public PostFeedExtended(Post post, Event ev, User admin) { InitializeComponent(); _logicPost = new PostLogic(); _reportContext = new ReportOracleContext(); _post = post; _event = ev; _admin = admin; }
public ReportSection(User admin, Event ev) { InitializeComponent(); _admin = admin; _event = ev; _logicPost = new PostLogic(); _logicReport = new ReportOracleContext(); _getAllPostByEvent = _logicPost.GetAllByEvent(_event); lblWelkom.Text = $"Welkom bij de rapporten overzicht, {_admin.Name} {_admin.Surname}"; }
public PostFeedExtended(Post post, Event ev, User user) { InitializeComponent(); _logicPost = new PostLogic(); _reportContext = new ReportOracleContext(); _post = post; _event = ev; _activeUser = user; }
public PostFeedExtended(Post post, Event ev, Guest active) { InitializeComponent(); _logicPost = new PostLogic(); _reportContext = new ReportOracleContext(); _post = post; _event = ev; // Currently signed in guest _activeUser = active; }
private void CheckReportStatus(Post post, PostLogic postLogic, ReportOracleContext reportContext) { var allReports = reportContext.GetAllByPost(post); if (allReports.Count >= 5) post.Visible = false; postLogic.UpdatePost(post); }
private void RefreshReportSystem(List<Post> getAllPostByEvent, ReportOracleContext report) { lbReportsUnder5.Items.Clear(); lbUnvisiblePosts.Items.Clear(); lbReportsAbove5.Items.Clear(); // Under 5 listbox foreach (var p in getAllPostByEvent) { var tempListOfReports = report.GetAllByPost(p); if (tempListOfReports.Count >= 1 && tempListOfReports.Count < 5 && p.Visible) { lbReportsUnder5.Items.Add(p); } } // Invisible listbox foreach (var p in getAllPostByEvent) { if (!p.Visible) { lbUnvisiblePosts.Items.Add(p); } } // Above 5 lisbox foreach (var p in getAllPostByEvent) { var tempListOfReports = report.GetAllByPost(p); if (tempListOfReports.Count >= 5) { lbReportsAbove5.Items.Add(p); } } }