示例#1
0
 private void _OnObjectFound(object sender, ObjectFoundEventArgs e)
 {
     e.cancel = (e.Count == 20);		// Cancel after 20 objects 
     txtRslt.Text = txtRslt.Text + "_OnObjectFound -> ";
     string s = txtRslt.Text;
     AddObject(ref s, e.Count, e.ImageObject);
     txtRslt.Text = s;
     System.Windows.Forms.Application.DoEvents();
 }
示例#2
0
 private void _OnObjectFound(object sender, ObjectFoundEventArgs e)
 {
     e.cancel = (e.Count == 20);		// Canel after 20 objects are found
     txtRslt.Text = txtRslt.Text + "_OnObjectFound -> ";
     string s = txtRslt.Text;
     AddObject(ref s, e.Count, e.ImageObject);
     txtRslt.Text = s;
     System.Windows.Forms.Application.DoEvents();
 }