コード例 #1
0
        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";
            }
        }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 public Form1()
 {
     InitializeComponent();
     TextCompare.resetStat();
 }