private void fillListBoxStatuses() { foreach (Status status in LogicServices.GetStatuses()) { if (status.Message != null) { listBoxStatuses.Invoke(new Action(() => listBoxStatuses.Items.Add(status.Message))); } } }
private void fillListBoxStatuses() { foreach (Status status in LogicServices.GetStatuses()) { if (status.Message != null) { listBoxStatuses.Invoke(new Action(() => listBoxStatuses.Items.Add(status.Message))); } } }