public void DeleteTicket() { if (CurrentTicket != null) { CurrentTicket.Delete(false); Tickets.Remove(CurrentTicket); NotifyOfPropertyChange("Tickets"); NotifyOfPropertyChange("CmdStatus"); NotifyOfPropertyChange("CmdColor"); CreateCartLines(); MessageQueue.Enqueue("Ticket supprimer"); NextTicket(); if (ShowTicketsVisible) { ShowTickets(); } } }