private void btnDuplicates_Click(object sender, EventArgs e) { var list = new List <string>(); foreach (var l in richTextBox1.Lines) { list.Add(l); } if (TextCompare.AreDups(list)) { richTextBox2.Text = TextCompare.GetOutList(); } else { richTextBox2.Text = "No duplicates"; } }
private void richTextBox3_TextChanged(object sender, EventArgs e) { if ('r' == TextCompare.AddLeftRight(prepList())) { var list = TextCompare.GetDiffList(); string st = string.Empty; foreach (string s in list) { st += s + "\n"; } richTextBox2.Text = st; } else { richTextBox2.Text = "Paste Customer's Note List"; richTextBox3.Clear(); } }
public Form1() { InitializeComponent(); TextCompare.resetStat(); }