Question: I need to paste all of my data on separate lines so that they arent all smashed together. This is my data:

```
    data = {'sku: ***'+sku0+'*** Size: ***'+size0+'*** Stock: ***'+stock0+'***'
    'sku: ***'+sku0+'*** Size: ***'+size1+'*** Stock: ***'+stock1+'***'
    'sku: ***'+sku0+'*** Size: ***'+size2+'*** Stock: ***'+stock2+'***'
    'sku: ***'+sku0+'*** Size: ***'+size3+'*** Stock: ***'+stock3+'***'
    'sku: ***'+sku0+'*** Size: ***'+size4+'*** Stock: ***'+stock4+'***'
    'sku: ***'+sku0+'*** Size: ***'+size5+'*** Stock: ***'+stock5+'***'
    'sku: ***'+sku0+'*** Size: ***'+size6+'*** Stock: ***'+stock6+'***'
    'sku: ***'+sku0+'*** Size: ***'+size7+'*** Stock: ***'+stock7+'***'
    'sku: ***'+sku0+'*** Size: ***'+size8+'*** Stock: ***'+stock8+'***'
    'sku: ***'+sku0+'*** Size: ***'+size9+'*** Stock: ***'+stock9+'***'}

```

Answer: 
I'm guessing the above code is in the button click handler for the Login Window, which would make the Login Window the parent of the StudentInfoSystem window.  

Since WPF will close the parent and any child(ren) window(s) when closing the parent window, your StudentInfo window will also close when calling 

```
this.Close();

```

One option might be to instead call 

```
this.Hide();

```

but without seeing how the rest of your app is set up, not 100% sure this is the best approach.

Perhaps see these SO questions:

1. [wpf-create-sibling-window-and-close-current-one](https://stackoverflow.com/questions/6672187/wpf-create-sibling-window-and-close-current-one)
2. [how-to-close-current-window-in-code-when-launching-new-window](https://stackoverflow.com/questions/19248822/how-to-close-current-window-in-code-when-launching-new-window)
As I understand, this should do what you want:

```
info.ShowDialog();

```

You could also check `ShutdownMode` property. I would rather say, login window is sth you want to close after login, but do what you want :). Usage of `ShutdownMode` property:

```
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);    
        this.ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
    }
}

```