Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, object msg ) : MessageBox
title string The title bar text
msg object The message box body text
return MessageBox
Ejemplo n.º 1
0
 public void newCarteira()
 {
     MessageBox msb = new MessageBox();
     msb.Prompt("Nova Carteira", "Digite o nome para a Nova Carteira", new JFunction { Fn = "saveWrittenText" });
     msb.Show();
 }
Ejemplo n.º 2
0
 protected void adicionarAcao(object sender, DirectEventArgs e)
 {
     MessageBox mb = new MessageBox();
     mb.Prompt("Adicionar Ação", "Indique o simbolo da ação que quer adicionar", new JFunction { Fn = "AcaoWrittenText" });
     mb.Show();
 }
Ejemplo n.º 3
0
 public void adicionarFundos()
 {
     MessageBox msg = new MessageBox();
     msg.Prompt("Adição de novos fundos", "Digite a quantia a ser adicionada aos fundos da aplicação.");
     msg.Show();
 }