public void OnPostProcessDocument(string txtContents) { CommentCharacterizer characterizer = new CommentCharacterizer(txtContents); CommentContents = txtContents; CommentDescription = characterizer.GetDescription(); }
public void OnPostRandomSample() { Random randomNum = new Random(DateTime.Now.Millisecond); string[] samples = { "Me parece pésimo que el resultado de la prueba haya sido tan bajo.", "Me parece excelente que el resultado de la prueba haya sido tan alto.", "Un resultado así no era esperable." }; string strComment = samples[randomNum.Next(samples.Length)]; CommentContents = strComment; CommentCharacterizer characterizer = new CommentCharacterizer(strComment); CommentDescription = characterizer.GetDescription(); }