private void SaveEnvironment(TreeNode oParent, int _classid) { foreach (TreeNode oNode in oParent.ChildNodes) { if (oNode.Checked == true) { oDomain.AddClassEnvironment(intDomain, _classid, Int32.Parse(oNode.Value)); } } }