private void InitModels() { using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient()) { QueryModelList = _msc.GetQueryModels(QueryModels).ToList <MD_QueryModel>(); } foreach (MD_QueryModel _qm in QueryModelList) { TreeListNode _node = this.treeList1.AppendNode(null, null); _node.Tag = _qm; _node.SetValue("COLUMN1", _qm); _node.SetValue("State", 1); } }