private void TextPromptButton_Click(object sender, EventArgs e)
 {
     ITextPrompt prompt = new TextPromptDialog("What is the driver's name:", "Driver name", "Jane");
     MessageBox.Show(prompt.ShowDialog() != DialogResult.OK ? "Cancelled" : string.Format("Name is {0}", prompt.Value));
 }
 private void PasswordPromptButton_Click(object sender, EventArgs e)
 {
     var passwordPrompt = new TextPromptDialog("Enter a password:"******"PASSWORD");
     passwordPrompt.SetIsPasswordPrompt(true);
     if (passwordPrompt.ShowDialog() == DialogResult.OK)
     {
         MessageBox.Show(string.Format("Password: {0}", passwordPrompt.Value));
     }
 }