Example #1
0
        private void TicketForm_Load(object sender, EventArgs e)
        {
            TicketsList.ticketFrm = this;
            ArrayList array = TicketsList.GetTickets();

            createCoplainment conplainment = new createCoplainment();

            conplainment.addToPage(array);
        }
Example #2
0
        void addTicketsToPage(ArrayList array)
        {
            if (array.Count % 5 == 0)
            {
                Pagination pg = new Pagination();
                int        paginationCount = pg.paginationCount(array.Count);
                pg.createPagination(TicketsList.ticketFrm.grbx_pagination, TicketsList.ticketFrm.ticketViewer, paginationCount, array.Count);
            }
            createCoplainment conplainment = new createCoplainment();

            conplainment.addToPage(array);
        }
        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);
            }
        }
Example #4
0
 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);
         }
     }
 }