Beispiel #1
0
        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 + ";   ";
                }
            }
        }
Beispiel #2
0
        protected virtual void OnTextCaptured(TextCapturedEventArgs e)
        {
            EventHandler <TextCapturedEventArgs> handler = TextCaptured;

            if (handler != null)
            {
                handler(this, e);
            }
        }