public override void InitializeControl(string webURL, Field field, IItem listItem, ContentType contentType, ISiteSetting siteSetting, string rootFolder) { base.InitializeControl(webURL, field, listItem, contentType, siteSetting, rootFolder); if (field.Type == FieldTypes.Choice) { foreach (ChoiceDataItem choiceItem in field.ChoiceItems) { TheList.Add(new BoolStringClass { TheText = choiceItem.DisplayName, TheValue = choiceItem.Value }); } } else if (field.Type == FieldTypes.Lookup) { IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); List <IItem> items = serviceManager.GetListItems(siteSetting, rootFolder, field.List.ToString(), false); foreach (IItem item in items) { TheList.Add(new BoolStringClass { TheText = item.Title, TheValue = item.GetID() }); } } else { //TODO: Log error and handle accordingly return; } comboBox1.ItemsSource = TheList; this.DataContext = this; //comboBox1.Dispatcher.Invoke(new Action(() => { }), DispatcherPriority.DataBind); }
private void ExportWizardForm_OKButtonSelected(object sender, EventArgs e) { var dialog = new System.Windows.Forms.FolderBrowserDialog(); System.Windows.Forms.DialogResult result = dialog.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) { return; } string tempPath = dialog.SelectedPath; foreach (Folder folder in this.SelectedFolders) { SiteSetting siteSetting = ApplicationContext.Current.Configuration.SiteSettings[folder.SiteSettingID]; List <Field> fields = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).GetFields(siteSetting, folder); string fieldsPath = tempPath + "\\" + folder.Title + ".xml"; SerializationManager.SaveConfiguration <List <Field> >(fields, fieldsPath); } if (ViewComboBox.SelectedItem == null) { return; } }
private void btn_Start_Click(object sender, EventArgs e) { if (service != null && service.ServiceState == System.ServiceModel.CommunicationState.Opened) { MessageBox.Show("服务已启动"); return; } //启动骨密度 TCP服务 //BaseService service; //TcpServiceMgr tcpService; //根据TCP联网方式创建并返回Service service = ServiceManagerFactory.Instance().GetService(BindingType.TCP); //配置当前使用通信模块的产品 service.ConfigService(Chioy.Communication.Networking.Common.ProductType.BMD); //注册Provider,提供用来提供病人和接收检查结果 service.RegisterProvider(new MyProvider()); //客户端断线和新客户端上线是TCPService特有的功能,所以用as来转化Service的类型 tcpService = service as TcpServiceMgr; tcpService.ClientLost += Service_ClientLost; tcpService.NewClientSubscribed += Service_NewClientSubscribed; service.ExceptionEvent += Service_ExceptionEvent; MessageBox.Show("服务启动成功"); //var service = new TCPService(); //service.StartKRSvc(); }
private void EditItem(ItemPropertyMapping itemPropertyMapping, FolderSetting folderSetting) { ContentType selectedContentType = null; if (folderSetting.Folder != null) { //SiteSetting siteSetting = this.SiteSettings[folderSetting.Folder.SiteSettingID];//JD ISiteSetting siteSetting = ConfigurationManager.GetInstance().GetSiteSetting(folderSetting.Folder.SiteSettingID); IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); List <ContentType> contentTypes = serviceManager.GetContentTypes(siteSetting, folderSetting.Folder, false); selectedContentType = contentTypes.Single(t => t.ID.Equals(itemPropertyMapping.ContentTypeID)); } ItemPropertyMappingForm itemPropertyMappingForm = new ItemPropertyMappingForm(); itemPropertyMappingForm.Initialize(ApplicationContext.Current.GetApplicationFields(null), selectedContentType, itemPropertyMapping.ApplicationPropertyName, itemPropertyMapping.ServicePropertyName); if (itemPropertyMappingForm.ShowDialog(this.ParentWindow, Languages.Translate("Add Mapping"), 200, 300) == true) { itemPropertyMapping.ApplicationPropertyName = itemPropertyMappingForm.SelectedApplicationPropertyID; itemPropertyMapping.ServicePropertyName = itemPropertyMappingForm.SelectedServicePropertyID; this.RefreshMappingListView(); } }
void callback(object args, DateTime dateTime) { object[] arguments = args as object[]; SiteSetting siteSetting = arguments[0] as SiteSetting; Folder folder = arguments[1] as Folder; ComboBox ContentTypeComboBox = arguments[2] as ComboBox; IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); List <ContentType> contentTypes = serviceManager.GetContentTypes(siteSetting, this.SelectedFolder, false); ContentTypeComboBox.Dispatcher.Invoke(DispatcherPriority.Input, new ThreadStart(() => { ContentTypeComboBox.Items.Clear(); foreach (ContentType contentType in contentTypes) { ContentTypeComboBox.Items.Add(new { Name = contentType.Name, ID = contentType.ID }); } if (ContentTypeComboBox.Items.Count > 0) { if (string.IsNullOrEmpty(this.SelectedContentTypeID) == true) { ContentTypeComboBox.SelectedIndex = 0; } else { ContentTypeComboBox.SelectedValue = this.SelectedContentTypeID; } } this.HideLoadingStatus("Ready"); })); }
private List <Folder> GetSubFoldersByBasicFolderDefinition(ISiteSetting siteSetting, Folder folder, BasicFolderDefinition basicFolderDefinition, bool returnAll) { if (basicFolderDefinition.Folders.Count > 0) { List <Folder> subFolders = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).GetFolders(siteSetting, folder); foreach (Folder subFolder in subFolders) { BasicFolderDefinition subBasicFolderDefinition = basicFolderDefinition.Folders.Single(t => t.FolderUrl == subFolder.GetUrl()); if (basicFolderDefinition != null) { subFolder.Selected = true; } if (returnAll == true || basicFolderDefinition != null) { folder.Folders.Add(subFolder); } subFolder.Folders = GetSubFoldersByBasicFolderDefinition(siteSetting, subFolder, subBasicFolderDefinition, returnAll); } return(subFolders); } return(new List <Folder>()); }
public static bool CheckInItem(ISiteSetting siteSetting, IItem item, IConnectorExplorer connector) { CheckInForm checkInForm = new CheckInForm(); checkInForm.Initialize(siteSetting, item); if (checkInForm.ShowDialog(null, Languages.Translate("Check In Item")) == true) { string comment = checkInForm.Comments; CheckinTypes checkinType = checkInForm.CheckInType; IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Result result; if (result = serviceManager.CheckInFile(siteSetting, item, comment, checkinType)) { if (checkInForm.KeepDocumentCheckedOut == true) { serviceManager.CheckOutFile(siteSetting, item); } else { if (connector != null) { item.Properties["ows__Level"] = "1"; //connector.ContentExplorer.UpdateItem(item.GetID(), item); } } } else { MessageBox.Show(result.detailResult, result.messageResult, MessageBoxButton.OK, MessageBoxImage.Error); return(false); } } return(true); }
public static void AddFolder(ISiteSetting siteSetting, object Item, string folderName) { string folderPath = ""; string webURL = ""; string listName = string.Empty; if (Item as SPListItem != null) { SPListItem item = (SPListItem)Item; //folderPath = item.; folderPath = string.IsNullOrEmpty(folderPath) ? item.ListName : folderPath; webURL = item.WebURL; listName = item.ListName; } else { SPFolder folder = (SPFolder)Item; folderPath = folder.FolderPath; webURL = folder.WebUrl; listName = folder.ListName; } IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); serviceManager.AddFolder(siteSetting, webURL, folderName, folderPath, listName); }
public static void EditItemProperties(ISiteSetting siteSetting, object item, Folder folder) { IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); List <ContentType> contentTypes = serviceManager.GetContentTypes(siteSetting, folder, false);//JD 6/8/13 //list content types for this item List <ContentType> sigleContentTypes = new List <ContentType>(); string webUrl; string listName; int listItemID; string itemContentType; Dictionary <string, string> properties; if (item as SPFolder != null) { webUrl = ((SPFolder)item).GetWebUrl(); listName = ((SPFolder)item).ListName; listItemID = int.Parse(((SPFolder)item).ID); itemContentType = ((SPFolder)item).Properties["ContentTypeId"].ToString(); properties = ((SPFolder)item).Properties; } else { webUrl = ((SPListItem)item).WebURL; listName = ((SPListItem)item).ListName; listItemID = ((SPListItem)item).ID; itemContentType = ((SPListItem)item).Properties["ContentTypeId"].ToString(); properties = ((SPListItem)item).Properties; } foreach (ContentType contentType in contentTypes) { if (contentType.Name.Equals(itemContentType) || contentType.ID.Equals(itemContentType)) { sigleContentTypes.Add(contentType); break; } } EditItemPropertiesControl editControl = new EditItemPropertiesControl(folder.GetWebUrl(), null, sigleContentTypes, null, null, siteSetting, webUrl, properties, true); if (editControl.ShowDialog(null, Languages.Translate("Edit Properties")) == true) { ContentType contentType; Dictionary <object, object> values = editControl.GetValues(out contentType); serviceManager.UpdateListItem(siteSetting, webUrl, listName, listItemID, values, new Dictionary <string, object>()); if (siteSetting.CheckInAfterEditProperties && editControl.requiredFieldsOk & (item as SPListItem != null)) { SPListItem i = ((SPListItem)item); CheckinTypes checktype = siteSetting.useMajorVersionAsDefault ? CheckinTypes.MajorCheckIn : CheckinTypes.MinorCheckIn; serviceManager.CheckInFile(siteSetting, (SPListItem)item, "", checktype); } } }
private void RefreshVersionListView() { List <ItemVersion> versions = ServiceManagerFactory.GetServiceManager(this.SiteSetting.SiteSettingType).GetListItemVersions(this.SiteSetting, this.SelectedItem); MappingsListView.Items.Clear(); foreach (ItemVersion itemVersion in versions) { MappingsListView.Items.Add(itemVersion); } }
public override FieldCollection GetFields(ISiteSetting siteSetting, Folder folder) { if (folder as CRMEntity != null) { return(((CRMEntity)folder).Fields); } IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); return(serviceManager.GetFields(siteSetting, folder)); }
public Folder GetFolderByBasicFolderDefinition(ISiteSetting siteSetting, BasicFolderDefinition basicFolderDefinition, bool returnAll) { Folder folder = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).GetFolder(siteSetting, basicFolderDefinition); folder.Selected = true; folder.Folders = GetSubFoldersByBasicFolderDefinition(siteSetting, folder, basicFolderDefinition, returnAll); return(folder); }
private void button3_Click(object sender, EventArgs e) { //启动骨密度 TCP服务 //BaseService service; //根据HTTP联网方式创建并返回Service service = ServiceManagerFactory.Instance().GetService(BindingType.HTTP); //配置当前使用通信模块的产品 service.ConfigService(Chioy.Communication.Networking.Common.ProductType.BMD); //注册Provider,提供用来提供病人和接收检查结果 service.RegisterProvider(new MyProvider()); }
public override void CreateFields(ISiteSetting siteSetting, Folder folder, List <Field> fields) { if (folder as CRMEntity != null) { } else { IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); serviceManager.CreateFields(siteSetting, folder, fields); } }
public static void PasteItem(ISiteSetting siteSetting, object Item, Folder folder) { Folder f = folder; if (Item as SPListItem == null) { f = (Folder)Item; } FileCopyNameForm fileCopyNameForm = new FileCopyNameForm(); fileCopyNameForm.Initialize(false, _CopiedItemInfo.Item.Title); bool needsTry = true; IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); while (needsTry == true) { if (fileCopyNameForm.ShowDialog(null, Languages.Translate("File Name Confirmation"), 220, 400) == true) { if (serviceManager.CheckItemCanBeCopied(siteSetting, folder, _CopiedItemInfo.Item, fileCopyNameForm.NewFileName) == true) { Result result = serviceManager.CopyItem(siteSetting, folder, _CopiedItemInfo.Item, fileCopyNameForm.NewFileName); needsTry = false; } else { fileCopyNameForm = new FileCopyNameForm(); fileCopyNameForm.Initialize(true, fileCopyNameForm.NewFileName); } } else { needsTry = false; } } if (_CopiedItemInfo.Move && true) { serviceManager.DeleteFile(siteSetting, _CopiedItemInfo.Item); } if (siteSetting.CheckInAfterCopy) { SPListItem item = new SPListItem(siteSetting.ID); item.WebURL = folder.GetWebUrl(); item.URL = folder.GetUrl().CombineUrl(fileCopyNameForm.NewFileName); CheckinTypes checktype = siteSetting.useMajorVersionAsDefault ? CheckinTypes.MajorCheckIn : CheckinTypes.MinorCheckIn; serviceManager.CheckInFile(siteSetting, item, "", checktype); } _CopiedItemInfo = null; }
private void InitializeForm() { this.WorkflowData = ServiceManagerFactory.GetServiceManager(this.SiteSetting.SiteSettingType).GetWorkflowDataForItem(this.SiteSetting, this.Item); WorkflowListView.ItemsSource = this.WorkflowData.TemplateData.WorkflowTemplates; CollectionViewSource cvs = new CollectionViewSource(); cvs.Source = this.WorkflowData.ActiveWorkflowsData.Workflows; cvs.GroupDescriptions.Add(new PropertyGroupDescription("ActivenessGroupName")); ActiveWorkflowsListView.ItemsSource = cvs.View; }
private void LocationsComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { DocumentTemplateMapping documentTemplateMapping = LocationsComboBox.SelectedItem as DocumentTemplateMapping; SiteSetting siteSetting = ConfigurationManager.GetInstance().GetSiteSetting(documentTemplateMapping.Folder.SiteSettingID); IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Folder folder = serviceManager.GetFolder(siteSetting, documentTemplateMapping.Folder); this.SelectedFolder = folder; this.SelectedFolderLabel.Content = this.SelectedFolder.Title; SelectFromSubFoldersButton.Visibility = documentTemplateMapping.AllowToSelectSubFolders == true ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden; }
public static void DeleteItem(ISiteSetting siteSetting, IItem item) { MessageBoxResult result = MessageBox.Show(String.Format(Languages.Translate("Are you sure you would like to delete"), item.Title), Languages.Translate("Information"), MessageBoxButton.YesNo, MessageBoxImage.Exclamation); if (result == MessageBoxResult.No) { return; } IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); serviceManager.DeleteFile(siteSetting, item); }
private void WorkflowListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { WorkflowTemplate workflow = (WorkflowTemplate)WorkflowListView.SelectedItem; if (CanTheWorkflowBeInitiated(workflow.TemplateId) == false) { MessageBox.Show(Languages.Translate("There is already a workflow instance running with the same workflow template")); return; } ServiceManagerFactory.GetServiceManager(this.SiteSetting.SiteSettingType).StartWorkflow(this.SiteSetting, this.Item, workflow); }
private void SiteSettingForm_OKButtonSelected(object sender, EventArgs e) { SiteSetting siteSetting = (SiteSetting)this.Tag; LoadingWindow loadingWindow = new LoadingWindow(); loadingWindow.Show(Languages.Translate("Checking connection...")); if (ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).CheckConnection(siteSetting) == false) { this.IsValid = false; loadingWindow.Close(); MessageBox.Show(Languages.Translate("Checking connection failed. Please correct the entries.")); return; } loadingWindow.Close(); }
public static void OpenWorkflowDialog(string itemUrl) { ISiteSetting siteSetting = ConfigurationManager.GetInstance().GetProbableSiteSetting(itemUrl); if (siteSetting == null) { throw new Exception(string.Format(Languages.Translate("SiteSetting match could not be found for item:{0}"), itemUrl)); } IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Folder itemFolder; IItem item = serviceManager.GetItem(siteSetting, itemUrl, out itemFolder); Folder workflowFolder = serviceManager.GetWorkflowFolder(siteSetting, itemFolder, itemUrl); OpenWorkflowDialog(siteSetting, itemFolder, item); }
private void SelectFromSubFoldersButton_Click(object sender, RoutedEventArgs e) { DocumentTemplateMapping documentTemplateMapping = LocationsComboBox.SelectedItem as DocumentTemplateMapping; SiteSetting siteSetting = ConfigurationManager.GetInstance().GetSiteSetting(documentTemplateMapping.Folder.SiteSettingID); IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Folder folder = serviceManager.GetFolder(siteSetting, documentTemplateMapping.Folder); SiteContentSelections siteContentSelections = new SiteContentSelections(); siteContentSelections.InitializeForm(siteSetting, folder, true, null); if (siteContentSelections.ShowDialog(this.ParentWindow, Languages.Translate("Save Location Selection")) == true) { this.SelectedFolder = siteContentSelections.SelectedFolder; this.SelectedFolderLabel.Content = this.SelectedFolder.Title; } }
public static bool UndoCheckOutItem(ISiteSetting siteSetting, IItem item, IConnectorExplorer connector) { IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Result result = serviceManager.UndoCheckOutFile(siteSetting, item); if (result) { item.Properties["ows__Level"] = "1"; } else { MessageBox.Show(result.detailResult, result.messageResult, MessageBoxButton.OK, MessageBoxImage.Error); return(false); } //connector.ContentExplorer.UpdateItem(item.GetID(), item); return(true); }
private void RefreshSearchFiltersListPanel(StackPanel searchFiltersListPanel, Dictionary <string, SearchFilters> searchFilters, ContentType contentType) { IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(SiteSetting.SiteSettingType); Folder targetFolder = serviceManager.GetFolder(SiteSetting, TargetFolder); SearchFiltersListPanel.Children.Clear(); foreach (string key in searchFilters.Keys) { SearchFilters filters = searchFilters[key]; SearchFilterControl searchFilterControl = new SearchFilterControl(); searchFilterControl.Name = key; searchFilterControl.Initialize(targetFolder.GetWebUrl(), contentType, filters[0], filters.IsOr); searchFilterControl.ReadOnly = true; searchFilterControl.FilterRemoved += new EventHandler(searchFilterControl_FilterRemoved); searchFiltersListPanel.Children.Add(searchFilterControl); } }
private void SearchButton_Click(object sender, RoutedEventArgs e) { SiteSetting siteSetting = this.SiteSettings[SelectedDocumentTemplateMapping.Folder.SiteSettingID]; IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); Folder targetFolder = serviceManager.GetFolder(siteSetting, SelectedDocumentTemplateMapping.Folder); int itemCount; string listItemCollectionPositionNext = String.Empty; Folder selectedFolder = targetFolder; IView selectedView = null; string sortedFieldName = string.Empty; bool isAsc = true; int currentPageIndex = 0; string currentListItemCollectionPositionNext = "0"; CamlFilters customFilters = new CamlFilters(); customFilters.IsOr = false; Dictionary <string, SearchFilters> searchFilters; if (radioButtonWord.IsChecked == true) { searchFilters = WordSearchFilters; } else if (radioButtonOutlook.IsChecked == true) { searchFilters = OutlookSearchFilters; } else { searchFilters = ExcelSearchFilters; } foreach (string key in searchFilters.Keys) { CamlFilter customFilter = new CamlFilter(searchFilters[key][0]); customFilters.Add(customFilter); } List <IItem> items = ApplicationContext.Current.GetListItems(siteSetting, selectedFolder, selectedView, sortedFieldName, isAsc, currentPageIndex, currentListItemCollectionPositionNext, customFilters, true, out listItemCollectionPositionNext, out itemCount); ApplicationContext.Current.BindSearchResultsToListViewControl(siteSetting, items, SearchResultDataGridView); }
protected override void OnLoad() { base.OnLoad(); Uri uri = new Uri(this.Url); this.myBrowser.Navigating += new NavigatingCancelEventHandler(myBrowser_Navigating); this.myBrowser.Navigated += new NavigatedEventHandler(myBrowser_Navigated); this.myBrowser.LoadCompleted += new LoadCompletedEventHandler(myBrowser_LoadCompleted); if (this.SiteSetting.UseClaimAuthentication == true) { CookieContainer cookieContainer = ServiceManagerFactory.GetServiceManager(this.SiteSetting.SiteSettingType).GetCookieContainer(this.SiteSetting.Url, this.SiteSetting.Username, this.SiteSetting.Password); foreach (Cookie cookie in cookieContainer.GetCookies(new Uri(this.SiteSetting.Url))) { InternetSetCookie(this.Url, null, cookie.ToString() + "; expires = Sun, 01-May-2013 00:00:00 GMT"); } } this.myBrowser.Navigate(uri); }
static void Main(string[] args) { IServiceManager sm = ServiceManagerFactory.CreateInstance(); var connection = sm.Resolve <IConnectionService>(); connection.Config.Host = "app.crossgay.club"; connection.Config.Port = 18000; connection.Connect(); var authService = sm.Resolve <ISecurityService>(); var authIn = new AuthIn() { UserName = "******", Password = "******" }; var authTask = authService.Auth(authIn); var authResult = authTask.ConfigureAwait(true).GetAwaiter().GetResult(); Console.WriteLine(authResult.Get <AuthResponse>().Success); }
protected void UploadFilesForm_OKButtonSelected(object sender, EventArgs e) { if (UploadLocation.SelectedFolder == null) { MessageBox.Show(Languages.Translate("Please select a folder to upload")); } SiteSetting siteSetting = ConfigurationManager.GetInstance().GetSiteSetting(UploadLocation.SelectedFolder.SiteSettingID); IServiceManager serviceManagerFactory = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType); string sourceFolder = ConfigurationManager.GetInstance().CreateATempFolder(); foreach (string filePath in this.FilesToUpload) { Sobiens.Connectors.Entities.UploadItem uploadItem = new Entities.UploadItem(); uploadItem.FilePath = filePath; uploadItem.Folder = UploadLocation.SelectedFolder; uploadItem.FieldInformations = new Dictionary <object, object>(); Sobiens.Connectors.Common.ApplicationContext.Current.UploadFile(siteSetting, uploadItem, null, false, false, Upload_Success, Upload_Failed); } }
private void MainForm_Load(object sender, EventArgs e) { serviceManager = ServiceManagerFactory.CreateInstance(); serviceManager.Register <IErrorService>(this); serviceManager.Register("ClientCallback", this); roomService = serviceManager.Register <RoomService>(); var connection = serviceManager.Resolve <IConnectionService>(); connection.Config.Host = "app.crossgay.club"; connection.Config.Port = 18000; connection.Connect(); var authTask = serviceManager.Resolve <ISecurityService>() .Auth(new AuthIn() { UserName = username, Password = "******" }); authTask.ContinueWith(JoinRoom); }
void callback(object args, DateTime dateTime) { object[] arguments = args as object[]; SiteSetting siteSetting = arguments[0] as SiteSetting; SPTaxonomyField field = arguments[1] as SPTaxonomyField; TreeView treeview = arguments[2] as TreeView; string webURL = arguments[3] as string; //http://www.novolocus.com/2012/02/09/working-with-the-taxonomyclientservice-part-2-get-the-termset-and-understand-it/ //string result = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).GetKeywordTermsByGuids(siteSetting, webURL, field.LCID, field.TermSetId.ToString()); TermSet termSet = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType).GetTermSets(siteSetting, webURL, field.LCID, field.SspId.ToString(), field.TermSetId.ToString()); treeview.Dispatcher.Invoke(DispatcherPriority.Input, new ThreadStart(() => { foreach (Term term in termSet.Terms) { treeview.Items.Add(term); } this.HideLoadingStatus(Languages.Translate("Ready")); })); }