title: Make form elements wait until async / await finishes
body: <p>I have a simple application that is using async / await (.NET 4.0 with async targeting package) to communicate with a db and return result.</p>
  
  <p>I need to alter the behavior of some form elements until the data are available. For simple implementations i would like to disable form elements until the data are available. Or change the behavior of the click events on form elements.</p>
  
  <p>What is the proper way of doing it? </p>
  
  <p>I have thought of</p>
  
  <ul>
  <li>Having some boolean property to let the elements know that the thread is operating.</li>
  <li>Use eventing form the button that does the work? (I suspect this is the solution but please elaborate on how)</li>
  </ul>
  
  <p>Thanks.</p>