protected void SettingsWindow_Closed(object sender, EventArgs e)
 {
     if (LinqToSitecoreFactory.IsValidConnection())
     {
         GetRoot();
     }
     else
     {
         MessageBox.Show(unable_to_connect);
     }
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     ItemTemplateControl.Visibility   = Visibility.Hidden;
     FolderTemplateControl.Visibility = Visibility.Hidden;
     if (!LinqToSitecoreFactory.IsValidConnection())
     {
         MessageBox.Show(unable_to_connect);
         var settingsWindow = new LinqToSitecoreSettings();
         settingsWindow.Closed += SettingsWindow_Closed;
         settingsWindow.ShowDialog();
     }
     else
     {
         GetRoot();
     }
 }