Using a child window from two different parent windows in c#
<p>My problem deals with the following 3 forms:<br></p>

<p>MainWindow.cs<br>
SettingsWindow.cs<br>
AuthenticationWindow.cs</p>

<p>Settings window contains information like "Ask for password during startup or not".</p>

<p>I call the Authentication Window from Settings Window in order to remove password (when the password is set).</p>

<p>I call the Authentication Window also during startup (when the password is set).</p>

<p>My Authentication Window interacts with the settings window using a Static variable(To say whether the authentication is successful or not).</p>

<p>But, in order to reuse the same code (that is, to call the same authentication window during startup), I am unable to tell the MainWindow whether the authentication is successful or not.
However, I must some how reuse the code.</p>

<p>My question is: Is it possible to notify the Child Window about whom the parent window is? If yes, Sample code please...</p>

<p>Hope my question is clear. </p>

<p>Kindly help!</p>
