private void RecognizeButton_Click(object sender, RoutedEventArgs e) { int status = Hwr.Recognize(inkObj, resultObj); if (status == Hwr.ERR_SUCCESS) { SetCandidateText(GetCandidates(resultObj)); } else { SetCandidateText("No Result"); } ShowCandidateText(true); Clear(); }
private void RecognizeButton_Click(object sender, RoutedEventArgs e) { int status = Hwr.Recognize(inkObj, resultObj); if (status == Hwr.ERR_SUCCESS) { String candidates = GetCandidates(resultObj); SetCandidateText(candidates); SetFormula(candidates.Substring(0, candidates.IndexOf('\n'))); ShowFormula(true); } else { SetCandidateText("No Result"); } ShowCandidateText(true); Clear(); }