private void SaveEnvironment(TreeNode oParent, int _platformid, int _classid) { foreach (TreeNode oNode in oParent.ChildNodes) { if (oNode.Checked == true) { oForecast.AddQuestionPlatform(intQuestion, _platformid, _classid, Int32.Parse(oNode.Value)); } } }