private void CloseButton_Click(object sender, EventArgs e) { BekuldottTicketek found = model.BekuldottTicketek.Find(((BekuldottTicketek)OpenedTickesList.SelectedItem).Id); if (found != null) { found.Statusz = (int)BekuldottTicketek.Status.Ended; model.SaveChanges(); ListModifier.UpdateList(OpenedTickesList, ActiveTicketLabel, model.BekuldottTicketek.ToArray()); } }
private void Main_Load(object sender, EventArgs e) { ListModifier.UpdateList(OpenedTickesList, ActiveTicketLabel, model.BekuldottTicketek.ToArray()); }