title: How to pass a Boolean value to another script before closing window?
body: <p>I have two windows, each has their own cs script: One login window and one main window, in the login window I have a boolean <code>bool keepLogin</code> which is set to <code>true</code> or <code>false</code> whenever the user ticket a &quot;Remember me&quot; checkbox.</p>
  <p>Now after the login is completed, the login window closes using <code>this.Close()</code> and opens the main window using <code>MainWindow mainWindow = new MainWindow()</code> and <code>mainWindow.Show()</code>.</p>
  <p>I assume this also closes the CS script attached to the login window, so how can I pass on the <code>bool keepLogin</code> to the CS of mainWindow so it can be used there?</p>