コード例 #1
0
        private void btn_send_Click(object sender, EventArgs e)
        {
            ArrayList array = TicketsList.GetTickets();

            TicketsList.Add(setTicket());


            addTicketsToPage(array);
        }
コード例 #2
0
        private void TicketForm_Load(object sender, EventArgs e)
        {
            TicketsList.ticketFrm = this;
            ArrayList array = TicketsList.GetTickets();

            createCoplainment conplainment = new createCoplainment();

            conplainment.addToPage(array);
        }
コード例 #3
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            ArrayList array = TicketsList.GetTickets();
            int       index = TicketsList.getSpecificTicket(TicketsList.chancedTicketID);

            TicketsList.Update(index, setTicket());


            addTicketsToPage(array);
            this.Close();
        }
コード例 #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);
         }
     }
 }