Ejemplo n.º 1
0
        public void refresh_IM()
        {
            TreeNode tn = new TreeNode("Interfaces", 5, 5);

            tn.Tag = "MENUINTERFACES";

            this.tvwProject.Nodes.Add(tn);
            TreeNode tnDI = new TreeNode("Data Interfaces", 0, 0);

            tnDI.Tag = "DATAINTERFACES";
            TreeNode tnBI = new TreeNode("Business Interfaces", 0, 0);

            tnBI.Tag = "BUSINESSINTERFACES";
            InterfaceModelApi im = new InterfaceModelApi(mdl);
            DataTable         dtInt, dtMet;

            dtInt = im.listInterfaces();
            for (int curRow = 0; curRow < dtInt.Rows.Count; curRow++)
            {
                TreeNode tmpInt = new TreeNode(dtInt.Rows[curRow][2].ToString().Trim(), 1, 1);
                tmpInt.Tag = "INTERFACE" + dtInt.Rows[curRow][1].ToString().Trim();
                dtMet      = im.listMethods((Guid)dtInt.Rows[curRow][1]);
                for (int metRow = 0; metRow < dtMet.Rows.Count; metRow++)
                {
                    TreeNode tmpMet = new TreeNode(dtMet.Rows[metRow][3].ToString().Trim(), 2, 2);
                    tmpMet.Tag = "METHOD" + dtMet.Rows[metRow][2].ToString().Trim();
                    tmpInt.Nodes.Add(tmpMet);
                }
                tnDI.Nodes.Add(tmpInt);
            }

            tn.Nodes.Add(tnDI);
            tn.Nodes.Add(tnBI);
        }
Ejemplo n.º 2
0
        public void refresh_PM()
        {
            TreeNode tn = new TreeNode("Solution", 7, 7);

            tn.Tag = "MENUPROJECTS";

            this.tvwProject.Nodes.Add(tn);
            TreeNode tnDA = new TreeNode("Data Access Projects", 0, 0);

            tnDA.Tag = "DATAPROJECTS";
            TreeNode tnBR = new TreeNode("Business Rules Projects", 0, 0);

            tnBR.Tag = "BUSINESSRULESPROJECTS";
            TreeNode tnBF = new TreeNode("Business Facade Projects", 0, 0);

            tnBF.Tag = "BUSINESSFACADEPROJECTS";
            TreeNode tnCS = new TreeNode("Client Stub Projects", 0, 0);

            tnCS.Tag = "CLIENTSTUBPROJECTS";


            InterfaceModelApi im = new InterfaceModelApi(mdl);
            DataTable         dtInt, dtMet;

            dtInt = im.listInterfaces();
            for (int curRow = 0; curRow < dtInt.Rows.Count; curRow++)
            {
                TreeNode tmpInt = new TreeNode(dtInt.Rows[curRow][2].ToString().Trim(), 1, 1);
                tmpInt.Tag = "INTERFACE" + dtInt.Rows[curRow][1].ToString().Trim();
                dtMet      = im.listMethods((Guid)dtInt.Rows[curRow][1]);
                for (int metRow = 0; metRow < dtMet.Rows.Count; metRow++)
                {
                    TreeNode tmpMet = new TreeNode(dtMet.Rows[metRow][3].ToString().Trim(), 2, 2);
                    tmpMet.Tag = "METHOD" + dtMet.Rows[metRow][2].ToString().Trim();
                    tmpInt.Nodes.Add(tmpMet);
                }
                tnDA.Nodes.Add(tmpInt);
            }

            tn.Nodes.Add(tnDA);
            tn.Nodes.Add(tnBR);
            tn.Nodes.Add(tnBF);
            tn.Nodes.Add(tnCS);
        }
Ejemplo n.º 3
0
        public void refresh_CM()
        {
            TreeNode tn = new TreeNode("Components", 3, 3);

            tn.Tag = "MENUCOMPONENTS";

            this.tvwProject.Nodes.Add(tn);
            TreeNode tnDA = new TreeNode("Data Access Components", 0, 0);

            tnDA.Tag = "DATACOMPONENTS";
            TreeNode tnBR = new TreeNode("Business Rules Componentes", 0, 0);

            tnBR.Tag = "BUSINESSRULESCOMPONENTS";
            TreeNode tnBF = new TreeNode("Business Facade Componentes", 0, 0);

            tnBF.Tag = "BUSINESSFACADECOMPONENTS";


            InterfaceModelApi im = new InterfaceModelApi(mdl);
            DataTable         dtInt, dtMet;

            dtInt = im.listInterfaces();
            for (int curRow = 0; curRow < dtInt.Rows.Count; curRow++)
            {
                TreeNode tmpInt = new TreeNode(dtInt.Rows[curRow][2].ToString().Trim(), 1, 1);
                tmpInt.Tag = "INTERFACE" + dtInt.Rows[curRow][1].ToString().Trim();
                dtMet      = im.listMethods((Guid)dtInt.Rows[curRow][1]);
                for (int metRow = 0; metRow < dtMet.Rows.Count; metRow++)
                {
                    TreeNode tmpMet = new TreeNode(dtMet.Rows[metRow][3].ToString().Trim(), 2, 2);
                    tmpMet.Tag = "METHOD" + dtMet.Rows[metRow][2].ToString().Trim();
                    tmpInt.Nodes.Add(tmpMet);
                }
                tnDA.Nodes.Add(tmpInt);
            }

            tn.Nodes.Add(tnDA);
            tn.Nodes.Add(tnBR);
            tn.Nodes.Add(tnBF);
        }