private void txtComentarios_DoubleClick(object sender, EventArgs e) { AppConstant.Calculator.textIN = string.Empty; frmKeyboard frmKeyboardForm = new frmKeyboard(); frmKeyboardForm.ShowDialog(); if (AppConstant.Calculator.textOUT != string.Empty) { txtComentarios.Text = AppConstant.Calculator.textOUT; } AppConstant.Calculator.textIN = string.Empty; AppConstant.Calculator.textOUT = string.Empty; }
private void txtPassword_DoubleClick(object sender, EventArgs e) { AppConstant.Calculator.textIN = string.Empty; var frmKeyboardForm = new frmKeyboard(); frmKeyboardForm.isPassword = true; frmKeyboardForm.ShowDialog(); if (AppConstant.Calculator.textOUT != string.Empty) { txtPassword.Text = AppConstant.Calculator.textOUT; } AppConstant.Calculator.textIN = string.Empty; AppConstant.Calculator.textOUT = string.Empty; }
private string GotoKeyboard(string textIn) { string returnValue = string.Empty; AppConstant.Calculator.textIN = textIn; var frmKeyboardForm = new frmKeyboard(); frmKeyboardForm.ShowDialog(); if (AppConstant.Calculator.textOUT != string.Empty) { returnValue = AppConstant.Calculator.textOUT; } AppConstant.Calculator.textIN = string.Empty; AppConstant.Calculator.textOUT = string.Empty; return(returnValue); }