public DirectoryComboBoxPropertyEditor(IWixPropertyGridControlDataSource dataSource)
 {
     ItemsSource = dataSource.InstallDirectories;
       checkForDeleting = dataSource.CheckInstallDirectoryForDeleting;
 }
 public static BaseEditSettings GetSettings(string editorTypeName, string info, PropertyGridControl propertyGridControl, IWixPropertyGridControlDataSource dataSource)
 {
     switch (editorTypeName)
       {
     case WixPropertyEditorsNames.FilePropertyEditor:
       return new FilePropertyEditorSettings(propertyGridControl, info);
     case WixPropertyEditorsNames.DirectoryComboBoxPropertyEditor:
       return new DirectoryComboBoxPropertyEditor(dataSource);
     case WixPropertyEditorsNames.FeatureDisplayComboBoxPropertyEditor:
       return new FeatureDisplayComboBoxPropertyEditor();
     case WixPropertyEditorsNames.FeatureAbsentComboBoxPropertyEditor:
       return new FeatureAbsentComboBoxPropertyEditor();
     case WixPropertyEditorsNames.SqlScriptSequenceSpinEditPropertyEditor:
       return new SqlScriptSequenceSpinEditPropertyEditor();
     default:
       return null;
       }
 }