public IFolderPropertiesUIPlugin GetFolderPropetiesPlugin(FolderType selectedFolderType) { if (selectedFolderType == null) { throw new ArgumentNullException(nameof(selectedFolderType)); } IFolderPropertiesUIPlugin clientUIPlugin; if (!_existClientPlugin.TryGetValue(selectedFolderType.Id, out clientUIPlugin)) { IClientRequests clientRequests = (IClientRequests)(ServiceProvider.GetService(typeof(IClientRequests))); string typeClientFolderPropertiesUI = clientRequests.GetFolderType(selectedFolderType.Id).TypeClientUI; clientUIPlugin = CreatePlugin <IFolderPropertiesUIPlugin>(typeClientFolderPropertiesUI); _existClientPlugin.Add(selectedFolderType.Id, clientUIPlugin); } return(clientUIPlugin); }
private string GetFolderPluginTypeName(int folderTypeId) { IClientRequests clientRequests = (IClientRequests)(ServiceProvider.GetService(typeof(IClientRequests))); return(clientRequests.GetFolderType(folderTypeId).TypeClientUI); }