private void btn_send_Click(object sender, EventArgs e) { ArrayList array = TicketsList.GetTickets(); TicketsList.Add(setTicket()); addTicketsToPage(array); }
private void TicketForm_Load(object sender, EventArgs e) { TicketsList.ticketFrm = this; ArrayList array = TicketsList.GetTickets(); createCoplainment conplainment = new createCoplainment(); conplainment.addToPage(array); }
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(); }
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); } } }