Exemple #1
0
 private void TreeView_AddSMC_1(ComTreeNode ctn)
 {
     DataSet.dsActivities.Sottocomponenti_1_T_ViewDataTable d_scm_1 = new DataSet.dsActivities.Sottocomponenti_1_T_ViewDataTable();
     new DataSet.dsActivitiesTableAdapters.Sottocomponenti_1_T_ViewTableAdapter().Fill(d_scm_1, ctn.COMKey, Program.language_, (int)comboBox_tipo_reparto_.SelectedValue);
     foreach (DataSet.dsActivities.Sottocomponenti_1_T_ViewRow r_scm_1 in d_scm_1.Rows)
     {
         SCM_1TreeNode s1tn = new SCM_1TreeNode(r_scm_1.LanTranslation);
         s1tn.SCM_1Key = r_scm_1.SCMKey;
         s1tn.IMPKey   = ctn.IMPKey;
         s1tn.MACKey   = ctn.MACKey;
         s1tn.COMKey   = ctn.COMKey;
         s1tn.AREKey   = ctn.AREKey;
         TreeView_AddSMC_2(s1tn);
         ctn.Nodes.Add(s1tn);
     }
 }
Exemple #2
0
 private void TreeView_AddSMC_2(SCM_1TreeNode s1tn)
 {
     DataSet.dsActivities.Sottocomponenti_2_T_ViewDataTable d_scm_2 = new DataSet.dsActivities.Sottocomponenti_2_T_ViewDataTable();
     new DataSet.dsActivitiesTableAdapters.Sottocomponenti_2_T_ViewTableAdapter().Fill(d_scm_2, s1tn.SCM_1Key, (int)comboBox_tipo_reparto_.SelectedValue, Program.language_);
     foreach (DataSet.dsActivities.Sottocomponenti_2_T_ViewRow r_scm_2 in d_scm_2.Rows)
     {
         SCM_2TreeNode s2tn = new SCM_2TreeNode(r_scm_2.LanTranslation);
         s2tn.SCM_2Key = r_scm_2.SCMKey;
         s2tn.SCM_1Key = s1tn.SCM_1Key;
         s2tn.IMPKey   = s1tn.IMPKey;
         s2tn.MACKey   = s1tn.MACKey;
         s2tn.COMKey   = s1tn.COMKey;
         s2tn.AREKey   = s1tn.AREKey;
         TreeView_AddSMC_3(s2tn);
         s1tn.Nodes.Add(s2tn);
     }
 }