private void CreateTicketCell(int column, int row, Guid featureId) { var cellView = new CellView(featureId); Board.InsertAt(cellView, column, row); cellView.Drop += (s, e) => MoveTicket(e.Data.GetData <Ticket>(), featureId); cellView.RequestNewTicket += (f) => NewTicket(f); var tickets = VisibleTickets .Where(t => t.FeatureId == featureId); foreach (var ticket in tickets) { var ticketView = new TicketView(ticket); cellView.Add(ticketView); ticketView.RequestClose += (t) => CloseTicket(t as Ticket); ticketView.RequestReopen += (t) => OpenTicket(t as Ticket); ticketView.RequestEdit += (t) => EditTicket(t as Ticket); ticketView.RequestRemove += (t) => RemoveEntity(t as Ticket); } }
internal void Add(TicketView ticketView) { listContents.Items.Add(ticketView); }