private void btnOpenTickets_Click(object sender, EventArgs e)
        {
            tickets     = objDBHandler.LoadDataFromDb();
            openTickets = new List <GUI_Registration.Ticket>();

            foreach (var t in tickets)
            {
                if (t.TicketStatus == "Open")
                {
                    openTickets.Add(t);
                }
            }

            lsbTickets.Items.Clear();
            lsbTickets.Items.AddRange(openTickets.ToArray());
        }
Exemple #2
0
 private void ReportManagerInterface_Load(object sender, EventArgs e)
 {
     tickets = objDBHandler.LoadDataFromDb();
     lsbTickets.Items.AddRange(tickets.ToArray());
 }