Ejemplo n.º 1
0
        private void Form1_Load()
        {
            startRow          = int.Parse(ConfigurationManager.AppSettings["StartRow"]);
            startCol          = int.Parse(ConfigurationManager.AppSettings["StartCol"]);
            configPath        = Application.StartupPath + "\\配置文件\\Config.xml";
            templateFilePath  = Application.StartupPath + "\\配置文件\\template.XLS";
            temporaryFilePath = Application.StartupPath + "\\Temporary\\" + "BOM临时文件.XLS";
            formulaPath       = Application.StartupPath + "\\配置文件\\formula.xml";


            colnumStylePath = Application.StartupPath + "\\配置文件\\template列宽设置.xml";
            Thread thread = new Thread(() =>
            {
                names  = sqlProcessor.GetName("");
                models = sqlProcessor.GetModel("");
            });

            thread.Start();
            InitDataGridView();
        }