private void btnRecognition_Click(object sender, EventArgs e) { string inkPadValue = ic.Ink.Strokes.ToString(); if (!ic.CollectingInk) { Strokes strokesToDelete = ic.Ink.Strokes; rct.StopBackgroundRecognition(); ic.Ink.DeleteStrokes(strokesToDelete); rct.Strokes = ic.Ink.Strokes; ic.Ink.DeleteStrokes();//清除手写区域笔画; PicInkPad.Refresh(); } InkWritingEventArgs ev = new InkWritingEventArgs(inkPadValue); if (UserHandWriting != null) { UserHandWriting(this, ev); } }
private void btnRecognition_Click(object sender, EventArgs e) { string inkPadValue = ic.Ink.Strokes.ToString(); if (!ic.CollectingInk) { Strokes strokesToDelete = ic.Ink.Strokes; rct.StopBackgroundRecognition(); ic.Ink.DeleteStrokes(strokesToDelete); rct.Strokes = ic.Ink.Strokes; ic.Ink.DeleteStrokes();//清除手写区域笔画; PicInkPad.Refresh(); } InkWritingEventArgs ev = new InkWritingEventArgs(inkPadValue); if (UserHandWriting != null) { UserHandWriting(this, ev); } }
private void handwritingPad1_UserHandWriting(object sender, InkWritingEventArgs e) { m_ActiveTextBox.Text += e.InkPadValue; m_ActiveTextBox.TabIndex = 0; m_ActiveTextBox.Focus(); }
private void handwritingPad1_UserHandWriting(object sender, InkWritingEventArgs e) { this.txtRemark.Text += e.InkPadValue; this.txtRemark.TabIndex = 0; this.txtRemark.Focus(); }