private void txtBxHeight_KeyUp(object sender, KeyEventArgs e)
 {
     if (TextBoxHelper.CanEvalNumber((TextBox)sender, e))
     {
         txtBxHeight_LostFocus(sender, e);
     }
 }
Exemplo n.º 2
0
        /* R Global Variables */

        public void txtRVariables_KeyUp(object sender, KeyEventArgs e)
        {
            if (TextBoxHelper.CanEvalNumber((TextBox)sender, e))
            {
                txtRVariables_LostFocus(sender, e);
            }
        }
Exemplo n.º 3
0
 private void txtVariables_KeyUp(object sender, KeyEventArgs e)
 {
     if (TextBoxHelper.CanEvalNumber(txtVariables, e))
     {
         txtVariables_LostFocus(sender, null);
     }
 }
Exemplo n.º 4
0
 private void txtKGlobalVariables_KeyUp(object sender, KeyEventArgs e)
 {
     if (TextBoxHelper.CanEvalNumber(txtKGlobalVariables, e))
     {
         var caretIndex = txtKGlobalVariables.CaretIndex;
         var origLength = txtKGlobalVariables.Text.Length;
         //List<double> vals = DoubleCollectionConverter.convert(txtKGlobalVariables.Text);
         //txtKGlobalVariables.Text = DoubleCollectionConverter.convert(vals);
         txtKGlobalVariables_LostFocus(sender, e);
         TextBoxHelper.SetCaret(txtKGlobalVariables, caretIndex, origLength);
     }
 }