Ejemplo n.º 1
0
        private void TreeView_AddImp(AreaTreeNode atn)
        {
            DataSet.dsActivities.Impianti_T_ViewDataTable d_imp = new DataSet.dsActivities.Impianti_T_ViewDataTable();
            new DataSet.dsActivitiesTableAdapters.Impianti_T_ViewTableAdapter().Fill(d_imp, Program.language_, atn.AREKey);

            foreach (DataSet.dsActivities.Impianti_T_ViewRow r_imp in d_imp.Rows)
            {
                ImpTreeNode itn = new ImpTreeNode(r_imp.LanTranslation);
                itn.AREKey = atn.AREKey;
                itn.IMPKey = r_imp.IMPKey;
                TreeView_AddMac(itn);
                atn.Nodes.Add(itn);
            }
        }
Ejemplo n.º 2
0
 private void TreeView_AddMac(ImpTreeNode itn)
 {
     DataSet.dsActivities.Macchine_T_ViewDataTable d_mac = new DataSet.dsActivities.Macchine_T_ViewDataTable();
     new DataSet.dsActivitiesTableAdapters.Macchine_T_ViewTableAdapter().Fill(d_mac, Program.language_, itn.IMPKey);
     foreach (DataSet.dsActivities.Macchine_T_ViewRow r_mac in d_mac.Rows)
     {
         MacTreeNode mtn = new MacTreeNode(r_mac.LanTranslation);
         mtn.AREKey = itn.AREKey;
         mtn.MACKey = r_mac.MACKey;
         mtn.IMPKey = itn.IMPKey;
         //TreeView_AddCom(mtn);
         //interrompo qua e dopo esplodo solo se clicco.
         itn.Nodes.Add(mtn);
     }
 }