Esempio n. 1
0
        private void ShowFolder()
        {
            dataGridView1.DataSource          = _bsFunctions;
            txtSourceFolder.Text              = _folderRoot;
            txtVcSymbolDb.Text                = LinqUtil.GetDataSourceFromConnectionString(_vcSymbolDataBase);
            dataGridView1.Columns[0].Width    = 300;
            dataGridView1.Columns[1].Width    = 100;
            dataGridView1.Columns[2].Width    = 200;
            dataGridView1.Columns[3].Visible  = false;
            dataGridView1.Columns[4].Width    = 300;
            dataGridView1.Columns[5].Visible  = false;
            dataGridView1.Columns[6].Visible  = false;
            dataGridView1.Columns[7].Width    = 70;
            dataGridView1.Columns[8].Visible  = false;
            dataGridView1.Columns[9].Visible  = false;
            dataGridView1.Columns[10].Visible = false;
            dataGridView1.Columns[11].Visible = false;
            dataGridView1.Columns[12].Visible = false;
            chkOnlyImplementations.Checked    = true;
            BringTotop();

            //dataGridView1.Columns[6].Visible = false;
            //dataGridView1.Columns[7].Visible = false;
        }
        /// <summary>
        /// Show Form content
        /// </summary>
        private void ShowComponent()
        {
            if (_component != null)
            {
                txtComponent.Text = _component.Name;
                txtGuid.Text      = _component.ElementGUID;
            }
            else
            {
                txtComponent.Text = Path.GetFileName(_folderCodeComponent);
                txtGuid.Text      = "N.A.";
            }


            txtFolderRoot.Text = _folderCodeComponent;
            //txtFolderRoot.Text = _folderCodeRoot;
            txtVcSymbolDb.Text              = LinqUtil.GetDataSourceFromConnectionString(_vcSymbolDataBase);
            chkOnlyMacros.Checked           = false;
            chkOnlyCalledInterfaces.Checked = true;

            grdProvidedInterfaces.DataSource = _bsProvidedInterfaces;
            grdRequiredInterfaces.DataSource = _bsRequiredInterfaces;
            if (grdProvidedInterfaces.ColumnCount > 6)
            {
                grdProvidedInterfaces.Columns[0].Width = 250;
                grdProvidedInterfaces.Columns[1].Width = 50;
                grdProvidedInterfaces.Columns[2].Width = 160;
                grdProvidedInterfaces.Columns[3].Width = 160;
                grdProvidedInterfaces.Columns[4].Width = 260;
                grdProvidedInterfaces.Columns[5].Width = 260;
                grdProvidedInterfaces.Columns[6].Width = 50;
                // set columns headings
                grdProvidedInterfaces.Columns[0].HeaderText = "Prov. Interface";
                grdProvidedInterfaces.Columns[1].HeaderText = "Implementation";
                grdProvidedInterfaces.Columns[2].HeaderText = "File Implementation";
                grdProvidedInterfaces.Columns[3].HeaderText = "File Callee";
                grdProvidedInterfaces.Columns[4].HeaderText = "Path Implementation";
                grdProvidedInterfaces.Columns[5].HeaderText = "Path Callee";
                grdProvidedInterfaces.Columns[6].HeaderText = "Is Called";
                grdProvidedInterfaces.Columns[6].Visible    = false;
                grdProvidedInterfaces.Columns[7].Visible    = false;
            }
            if (grdRequiredInterfaces.ColumnCount > 6)
            {
                grdRequiredInterfaces.Columns[0].Width = 250;
                grdRequiredInterfaces.Columns[1].Width = 50;
                grdRequiredInterfaces.Columns[2].Width = 160;
                grdRequiredInterfaces.Columns[3].Width = 160;
                grdRequiredInterfaces.Columns[4].Width = 260;
                grdRequiredInterfaces.Columns[5].Width = 260;
                grdRequiredInterfaces.Columns[6].Width = 50;
                // set columns headings
                grdRequiredInterfaces.Columns[0].HeaderText = "Req. Interface";
                grdRequiredInterfaces.Columns[1].HeaderText = "Implementation";
                grdRequiredInterfaces.Columns[2].HeaderText = "File Implementation";
                grdRequiredInterfaces.Columns[3].HeaderText = "File Callee";
                grdRequiredInterfaces.Columns[4].HeaderText = "Path Implementation";
                grdRequiredInterfaces.Columns[5].HeaderText = "Path Callee";
                grdRequiredInterfaces.Columns[6].Visible    = false;
                grdRequiredInterfaces.Columns[7].Visible    = false;
                grdRequiredInterfaces.Columns[8].Visible    = false;
                grdRequiredInterfaces.Columns[9].Visible    = false;
                grdRequiredInterfaces.Columns[10].Visible   = false;
                grdRequiredInterfaces.Columns[11].Visible   = false;
                grdRequiredInterfaces.Columns[12].Visible   = false;
            }
            FilterGrid();
            BringTotop();
        }