/// <summary>
 /// Sets the parent window for the current <see cref="RegistrationForm"/>.
 /// </summary>
 /// <param name="window">The window to use as the parent.</param>
 public void SetParentWindow(LoginRegistrationWindow window)
 {
     this.parentWindow = window;
 }
 private void LoginButton_Click(object sender, RoutedEventArgs e)
 {
     LoginRegistrationWindow loginWindow = new LoginRegistrationWindow();
     loginWindow.Show();
 }