Exemplo n.º 1
0
        private void btnCargarTablasEnTtreeViewTables_Click(object sender, EventArgs e)
        {
            DateTime inicio = DateTime.Now;

            if (cnnDataBaseForm1.CnnStringChange)
            {
                Metadata m = new Metadata();
                m.LoadTables();
                treeViewTables1.Tablas = m.Tables;
            }
            treeViewTables1.LoadTreeView();
            

            

            
            DateTime final = DateTime.Now;
            TimeSpan duracion = final - inicio;
            lblTablesTimeToLoad.Text = duracion.TotalSeconds.ToString();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            DateTime inicio = DateTime.Now;

            Fwk.DataBase.Metadata Metadata = new Metadata();
            Metadata.LoadTables();
            Tables t = Metadata.Tables;

            //TreeNode wTreeNode = new TreeNode(cboTable.SelectedValue.ToString());
            TreeNode wTreeNode = new TreeNode("Tables");
            wTreeNode.Checked = true;
            tvwChilds.Nodes.Add(wTreeNode);

            GenerateChildNodes(wTreeNode, ref t);


            DateTime final = DateTime.Now;
            TimeSpan duracion = final - inicio;
            lblTablesTimeToLoad.Text = duracion.TotalSeconds.ToString();

        }