title: WPF - choose startup window based on some condition
body: <p>When running my program by clicking <code>Run</code> or pressing <code>Ctrl + F5</code>, is it possible to open different windows based on some check condition?</p>
  
  <p>I.e if some condition is satisfied I wish to open a particular window, but if its not I want to open another window.</p>
  
  <p>It should be like before opening any window it should first check for the condition like</p>
  
  <pre><code>if(File.Exists(&lt;path-to-file&gt;)
      Open Window 1
  else
      Open Window 2
  </code></pre>
  
  <p>Is this possible?</p>