//UPGRADE_WARNING: (2080) Form_Load event was upgraded to Form_Load method and has a new behavior. More Information: http://www.vbtonet.com/ewis/ewi2080.aspx private void Form_Load() { DbCommand oCmd = UpgradeHelpers.DB.AdoFactoryManager.GetFactory().CreateCommand(); ADORecordSetHelper oRecSecondary = null; ADORecordSetHelper oRecSpecific = null; string sKey = ""; int intIndex = 0; int intNext = 0; UpgradeHelpers.BasicViewModels.TreeNodeViewModel mNode = null; //Configure TreeView Control ViewModel.tvwTraining.Set_Sorted(false); ViewModel.tvwTraining.LabelEdit = true; ViewModel.cboSpecificCodes.SelectedIndex = -1; ViewModel.cmdExpand.Tag = "1"; //Load Training Type TreeView Control oCmd.Connection = modGlobal.oConn; oCmd.CommandText = "spTrainingNew_GetAllPrimaryCodes"; ADORecordSetHelper oRec = ADORecordSetHelper.Open(oCmd, ""); while (!oRec.EOF) { mNode = ViewModel.tvwTraining.Add(""); mNode.Text = Convert.ToString(oRec["description"]); sKey = "P-" + Convert.ToString(oRec["trn_primary_code"]); mNode.Name = sKey; //WEBMAP_UPGRADE_ISSUE: (1101) System.Windows.Forms.TreeNode.Tag was not upgraded mNode.Set_Tag("Level1"); intIndex = mNode.Index + 1; oCmd.CommandText = "spTrainingNew_GetAllSecondaryCodesByPrimary " + Convert.ToString(oRec["trn_primary_code"]) + " "; oRecSecondary = ADORecordSetHelper.Open(oCmd, ""); while (!oRecSecondary.EOF) { mNode = ViewModel.tvwTraining.Items.Find(intIndex.ToString(), true)[0].Add(""); mNode.Text = Convert.ToString(oRecSecondary["description"]).Trim(); sKey = "S-" + Convert.ToString(oRecSecondary["trn_secondary_code"]); mNode.Name = sKey; //WEBMAP_UPGRADE_ISSUE: (1101) System.Windows.Forms.TreeNode.Tag was not upgraded mNode.Set_Tag("Level2"); intNext = mNode.Index + 1; oCmd.CommandText = "spTrainingNew_GetAllSpecificCodesBySecondary " + Convert.ToString(oRecSecondary["trn_secondary_code"]) + " "; oRecSpecific = ADORecordSetHelper.Open(oCmd, ""); while (!oRecSpecific.EOF) { mNode = ViewModel.tvwTraining.Items.Find(intNext.ToString(), true)[0].Add(""); mNode.Text = Convert.ToString(oRecSpecific["description"]).Trim(); sKey = "S2-" + Convert.ToString(oRecSpecific["trn_specific_code"]); mNode.Name = sKey; //WEBMAP_UPGRADE_ISSUE: (1101) System.Windows.Forms.TreeNode.Tag was not upgraded mNode.Set_Tag("Level3"); oRecSpecific.MoveNext(); } ; oRecSecondary.MoveNext(); } ; oRec.MoveNext(); } ; FillList(); }