title: C# Wait for user input to continue with function
body: <p>I have a function where I need user input to do A or B.</p>
  
  <p><code>if(userinput == "Confirm"){A}
  else {B}</code></p>
  
  <p>My question: Do I have to use dialogs, or may I use a panel with the message and two buttons for this?</p>
  
  <p>What I have: Panel with textbox (message) and two buttons (confirm, cancel)</p>
  
  <p>If yes, How may I accomplish that?
  If no, how do I even use dialogs? (just point out a link)</p>
  
  <p>(if you don't get my point so far, keep reading)</p>
  
  <blockquote>
    <p>1) User fills a form</p>
    
    <p>2) If that field is not unique on the database, it just get validated to be compatible with it</p>
    
    <p>3) If that field is unique, or a primary key, however, it searches the database for the information connected to it</p>
    
    <p>4) After getting that information, it checks if any other field built for that intel, is filled or empty</p>
    
    <p>5) If that form has anything in it that the user has inserted, the system has to ask if it updates the form with the intel it just got, or if it fills only the empty fields, and keeps those which are not empty.</p>
    
    <p>6) The function continues validating</p>
  </blockquote>