private void Window_Closing(object sender, CancelEventArgs e)
 {
     config.SaveConfiguration();
 }