Exemplo n.º 1
0
        public void Search(ProjectDetail projectDetail, CodeSearchOptions options)
        {
            Options = options;

            SearchDataTable(projectDetail.FormCodeDataTable);
            SearchDataTable(projectDetail.LibCodeDataTable);
            SearchDataTable(projectDetail.MenuCodeDataTable);
            SearchDataTable(projectDetail.ReportCodeDataTable);
        }
Exemplo n.º 2
0
        public void Process(ProjectDetail projectDetail)
        {
            ProjectDetail = projectDetail;

            ProcessLibCode(ProjectDetail.LibCodeDataTable);

            ProcessFormCode(ProjectDetail.FormCodeDataTable);

            ProcessMenuCode(ProjectDetail.MenuCodeDataTable);

            ProcessReportCode(ProjectDetail.ReportCodeDataTable);

            var toDoc = new ToDoc();

            toDoc.Createsqltable(ProjectDetail.FormCodeDataTable, "Forms");
        }
Exemplo n.º 3
0
        /// <summary>
        /// Reads the project.
        /// </summary>
        /// <param name="projectPath">The project path (.pjx file).</param>
        public void ReadProject(string projectPath)
        {
            try
            {
                ProjectDetail = new ProjectDetail();

                ProjectDetail.ProjectPath      = Path.GetFullPath(projectPath);
                ProjectDetail.ProjectName      = Path.GetFileName(projectPath);
                ProjectDetail.ProjectDirectory = Path.GetDirectoryName(projectPath);

                FillFileNamesDataTable();

                FillFileDetailsDataTable();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                System.Diagnostics.Debugger.Break();
            }
        }