private void BindFolderProviders() { var defaultProviders = DefaultFolderProviders.GetDefaultProviders(); foreach (var provider in FolderProvider.GetProviderList().Keys.Where(provider => !defaultProviders.Contains(provider)).OrderBy(provider => provider)) { FolderProvidersComboBox.AddItem(provider, provider); } FolderProvidersComboBox.InsertItem(0, "", ""); }
private void BindFolderProviders() { var defaultProviders = DefaultFolderProviders.GetDefaultProviders(); foreach (var provider in FolderProvider.GetProviderList().Keys.Where(provider => !defaultProviders.Contains(provider)).OrderBy(provider => provider)) { cboFolderProviders.Items.Add(provider); } cboFolderProviders.Items.Insert(0, new ListItem(Localization.GetString("SelectFolderProvider", LocalResourceFile), "")); }
private void BindFolderProviders() { var defaultProviders = DefaultFolderProviders.GetDefaultProviders(); foreach (var provider in FolderProvider.GetProviderList().Keys.Where(provider => !defaultProviders.Contains(provider)).OrderBy(provider => provider)) { this.FolderProvidersComboBox.Items.Add(new ListItem(provider, provider)); } this.FolderProvidersComboBox.Items.Insert(0, new ListItem(string.Empty, string.Empty)); }
private void OnItemDataBoundFolderTypeComboBox(object sender, RadComboBoxItemEventArgs e) { var dataSource = (FolderMappingViewModel)e.Item.DataItem; e.Item.Attributes["SupportsMappedPaths"] = FolderProvider.GetProviderList()[dataSource.FolderTypeName].SupportsMappedPaths.ToString().ToLowerInvariant(); }