How to Close previous same WPF when it launch again?
<p>A WPF window app opens from different window when it is running. 
But I want to close open a single window. If the app already running and I click again to the app to open again, then previous app will be closed and new app will be started..</p>

<p>I can close current window when the same window already running.</p>

<pre><code>Application.Current.Shutdown();
</code></pre>

<p>But I want to close previous window which is running. </p>