private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (IsLoaded)
     {
         positionManager.SaveSize(Config);
     }
 }
 private void MainWindow_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (IsLoaded)
     {
         positionManager.SaveSize(Settings.Instance);
     }
 }