private void SettingsButton_Click(object sender, RoutedEventArgs e)
        {
            var settingsWindow = new LinqToSitecoreSettings();

            settingsWindow.Closed += SettingsWindow_Closed;
            settingsWindow.ShowDialog();
        }
 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();
     }
 }