private void displayInfo(LogCollection logModel) { int[] temp = logModel.GetTypeCount(); typeCountBox.AppendText("INFO: " + temp[0]); typeCountBox.AppendText(Environment.NewLine); typeCountBox.AppendText("WARNING: " + temp[1]); typeCountBox.AppendText(Environment.NewLine); typeCountBox.AppendText("ERROR: " + temp[2]); foreach (string source in logModel.GetSources()) { SourceCountBox.AppendText(source + " : " + logModel.GetSourceCount(source)); SourceCountBox.AppendText(Environment.NewLine); } foreach (string tag in logModel.GetBodyTags()) { tagTextBox.AppendText(tag + " : " + logModel.GetBodyTagsCount(tag)); tagTextBox.AppendText(Environment.NewLine); } if (logModel.GetStartDate() == logModel.GetEndDate()) { dateTextBox.AppendText("Date: " + logModel.GetStartDate()); dateTextBox.AppendText(Environment.NewLine); } else { dateTextBox.AppendText("From Date: " + logModel.GetStartDate()); dateTextBox.AppendText(Environment.NewLine); dateTextBox.AppendText("To Date: " + logModel.GetEndDate()); dateTextBox.AppendText(Environment.NewLine); } dateTextBox.AppendText("Starting Time: " + logModel.GetStartTime()); dateTextBox.AppendText(Environment.NewLine); dateTextBox.AppendText("Ending Time: " + logModel.GetEndTime()); dateTextBox.AppendText(Environment.NewLine); dateTextBox.AppendText("Duration: " + logModel.GetLogDuration()); dateTextBox.AppendText(Environment.NewLine); }