private void button1_Click(object sender, EventArgs e) { int line = (int)GetCurrentLineNum(); labelLine.Text = line.ToString(); SentenceComment sc = new SentenceComment(line, text[line - 1]); foreach (var i in checkedListBox.CheckedItems) { string key = i.ToString(); dic[key] += +1; sc.addComment(key); currentScore -= scoreMap[key]; } comments.Add(sc); for (int i = 0; i < checkedListBox.Items.Count; i++) { checkedListBox.SetItemCheckState(i, CheckState.Unchecked); } checkedListBox.ClearSelected(); }
/// <summary> /// Ejecuta un comentario: no debería hacer nada, simplemente añade información de depuración /// </summary> private void ExecuteComment(SentenceComment sentence) { AddDebug($"Comment: {sentence.Content}"); }