public void addToPage(ArrayList array) { createCoplainment cC = new createCoplainment(); TicketsList.ticketFrm.ticketViewer.Controls.Clear(); createCoplainment.y = 0; for (int i = array.Count - 1; i >= 0; i--) { var tck = cC.AddTicket((Ticket)array[i]); TicketsList.ticketFrm.ticketViewer.Controls.Add(tck); } }
public void createTicket(ArrayList tickets, int start, int paginationSize) { tickets = TicketsList.GetTickets(); if (tickets.Count > 0) { createCoplainment cC = new createCoplainment(); createCoplainment.y = 0; for (int i = start - 1; i >= paginationSize; i--) { var tck = cC.AddTicket((Ticket)tickets[i]); TicketsList.ticketFrm.ticketViewer.Controls.Add(tck); } } }