private void LoadSomeData(String s) { twDataItems.Nodes.Clear(); List <DataClass> items = DataClass.GetSomeData(CompanyClass.GetAllCompanyWithName(s)); foreach (DataClass dc in items) { TreeNode tn = new TreeNode(CompanyClass.GetCompanyNameByCompanyIDAsString(DataClass.GetCompanyIDFromDataIDAsString(dc.DataID)) + dc.DataWeight.ToString() + "g " + dc.DataTime); tn.Tag = dc; twDataItems.Nodes.Add(tn); } }