public static string ShowDialog(string text, bool pass) { InputBox promt = new InputBox(text, pass); return(promt.ShowDialog() == DialogResult.OK ? promt.txt_Valor.Text : ""); }