private void allLogButton_Click(object sender, System.EventArgs e) { logListBox.Items.Clear(); try { ICollection <Log> allLogs = loggerManager.GetAllLogs(); FillList(allLogs); } catch (LoggerException ex) { MessageBox.Show(ex.Message); } }