public ArchiveView()
        {
            InitializeComponent();

            TicketListView.OnTicketSelectedEvent += (s1, e1) => {
                TicketDetailsComponent ticketDetailsComponent = new TicketDetailsComponent(e1.selectedTicket);
                Popup popup = new Popup(ticketDetailsComponent);
                popup.ShowDialog();
            };

            TicketListView.Dock = DockStyle.Fill;
            ticketListViewTargetPanel.Controls.Add(TicketListView);
        }
        public UserDetailsComponent(User user)
        {
            this.user = user;

            InitializeComponent();

            TicketListView ticketListView = new TicketListView(ticketService.GetTicketsByUser(user).ToList());

            ticketListView.Dock = DockStyle.Fill;

            ticketListView.OnTicketSelectedEvent += (s, e) => {
                TicketDetailsComponent ticketDetailsComponent = new TicketDetailsComponent(e.selectedTicket);
                Popup popup = new Popup(ticketDetailsComponent);

                popup.ShowDialog();
            };

            ticketsListViewTargetPanel.Controls.Add(ticketListView);

            RefreshDetails();
        }