private void onBrowserTextCaptured(object sender, TextCapturedEventArgs e) { if (!cbTextCapture.Checked) { return; } if (sender == null || e == null) { return; } TextBox tb = null; if (rbA.Checked) { tb = tbNumA; } if (rbB.Checked) { tb = tbNumB; } if (rbC.Checked) { tb = tbNumC; } if (tb != null) { if (!double.IsNaN(e.Odd)) { tb.Text += e.Odd + "; "; } } }
protected virtual void OnTextCaptured(TextCapturedEventArgs e) { EventHandler <TextCapturedEventArgs> handler = TextCaptured; if (handler != null) { handler(this, e); } }