示例#1
0
        private void ExcelOS_Load(object sender, EventArgs e)
        {
            this.dsExcelData = new DataSet();

            //从配置文件加载路径配置
            while (string.IsNullOrEmpty(TempletPath))
            {
                this.TempletPath = BaseConfig.LoadConfigInfo("FilePath", "TempletPath", "模板路径");
            }
            while (string.IsNullOrEmpty(OutPath))
            {
                this.OutPath = BaseConfig.LoadConfigInfo("FilePath", "OutPath", "输出路径");
            }

            //初始化文件列表
            DataBindingForCombo(cmbPath1, this.TempletPath);

            if (!Directory.Exists(OutPath))
            {
                Directory.CreateDirectory(OutPath);
            }
        }
示例#2
0
 private void MenuItemSysOut_Click(object sender, EventArgs e)
 {
     this.OutPath = BaseConfig.SetConfigInfo("FilePath", "OutPath", "输出路径");
 }
示例#3
0
 private void MenuItemSysTemplet_Click(object sender, EventArgs e)
 {
     this.TempletPath = BaseConfig.SetConfigInfo("FilePath", "TempletPath", "模板路径");
     //初始化文件列表
     DataBindingForCombo(cmbPath1, this.TempletPath);
 }