Ejemplo n.º 1
0
        /// <summary>
        /// 设置关联
        /// </summary>
        /// <param name="id"></param>
        private void SetLabelRef(int id)
        {
            List <TreeListNode> nodes = GetcheckList(treeList2);
            List <int>          ids   = nodes.Select(t => int.Parse(t.GetValue(0).ToString().Split(':').First())).ToList();

            if (!LabelData.RelevanceLabel(ids, id))
            {
                MessageBox.Show("设置关联失败");
            }
            GetLabels(RefreshType.DynamicLabel);
            Program.log.Error($"设置关联{id},label_ids:{string.Join(",", ids)}");
        }