private void CreateFolder(object sender, EventArgs e) { IFolderPropertiesUIPlugin clientUIPlugin = ((PluginService)(ServiceProvider.GetService(typeof(PluginService)))).GetFolderPropetiesPlugin(SelectedFolderType); global::Registration.SerializationService.FolderProperties folderProp = clientUIPlugin.Info; StringBuilder data = new StringBuilder(); if (null != folderProp) { foreach (KeyValuePair <string, string> info in folderProp.Properties) { data.Append(info); } } ClientRequests.CreateFolder(((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedFolder.Id, FolderName, ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).Worker.Id, SelectedFolderType.Id, data.ToString()); }
private void CreateFolder() { IFolderPropertiesUIPlugin clientUIPlugin = ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).CurrentFolderPropertiesPlugin; global::Registration.Model.FolderProperties folderProp = clientUIPlugin.FolderProperties; StringBuilder data = new StringBuilder(); if (null != folderProp) { foreach (KeyValuePair <string, string> info in folderProp.Properties) { data.Append(info); } } ClientRequests.CreateFolder(((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedFolder.Id, clientUIPlugin.FolderProperties.Name, ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).Worker.Id, SelectedFolderType.Id, data.ToString()); }