/// <summary> /// 设置状态选中 /// </summary> /// <param name="key"></param> public void SetChecked(object key, bool isFocus = true) { string keyStr = key as string; if (keyStr == null) { TSCommon.SetTreeListNodeChecked(treeList1, key, isFocus); } else { string[] keys = keyStr.Split(','); for (int i = 0; i < keys.Length; i++) { TSCommon.SetTreeListNodeChecked(treeList1, keys[i], isFocus); } } popupcEdit_Closed(null, null); }