private void button1_Click(object sender, EventArgs e) { textBox3.Clear(); C = new Clusters(TextOperations.GetMatrix, TextOperations.GetTextTitles, TextOperations.GetWords); CBaction(); EnableClusterPainting = true; textBox3.Clear(); for (int i = 0; i < C.GetClusters.Count; i++) { for (int j = 0; j < C.GetClusters[i].Data.Count; j++) { textBox3.Text += C.GetClusters[i].Data[j].Data.GetTag += " "; } textBox3.Text += " | "; } Invalidate(); }
private void UpdateParameter(object sender, ParameterEventArgs e) { textBox1.Text = Convert.ToString(e.GetPar); textBox3.Clear(); TextOperations.InitParams(TestData.Texts[comboBox2.SelectedIndex]); TextOperations.TagNullifier(); for (int i = 0; i < TextOperations.ts.Count; i++) { TextOperations.Tag.Add(TextOperations.Frequency(TextOperations.vClusterize(TextOperations.ts[i].ToString()))); } TextOperations.FormMatrix(); if (EnableClusterPainting) { C = new Clusters(TextOperations.GetMatrix, TextOperations.GetTextTitles, TextOperations.GetWords); CBaction(); textBox3.Clear(); for (int i = 0; i < C.GetClusters.Count; i++) { for (int j = 0; j < C.GetClusters[i].Data.Count; j++) { textBox3.Text += C.GetClusters[i].Data[j].Data.GetTag += " "; } textBox3.Text += " | "; } Invalidate(); } }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (EnableClusterPainting) { C = new Clusters(TextOperations.GetMatrix, TextOperations.GetTextTitles, TextOperations.GetWords); CBaction(); textBox3.Clear(); for (int i = 0; i < C.GetClusters.Count; i++) { for (int j = 0; j < C.GetClusters[i].Data.Count; j++) { textBox3.Text += C.GetClusters[i].Data[j].Data.GetTag += " "; } textBox3.Text += " | "; } Invalidate(); } }