private void displayResult(List <string> notFound, List <string> duplicates, List <string> failed) { string resultText = ""; resultText = "==== " + notFound.Count + " not found ===="; resultText += "\r\n"; foreach (string s in notFound) { resultText += s; resultText += "\r\n"; } resultText += "==== " + duplicates.Count + " duplicates found ===="; resultText += "\r\n"; foreach (string s in duplicates) { resultText += s; resultText += "\r\n"; } resultText += "==== " + failed.Count + " failed to move ===="; resultText += "\r\n"; foreach (string s in failed) { resultText += s; resultText += "\r\n"; } TB_NameList.Clear(); TB_NameList.AppendText(resultText); }
private void BTN_Clear_Click(object sender, EventArgs e) { TB_NameList.Clear(); }