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); } }
private void MenuItemSysOut_Click(object sender, EventArgs e) { this.OutPath = BaseConfig.SetConfigInfo("FilePath", "OutPath", "输出路径"); }
private void MenuItemSysTemplet_Click(object sender, EventArgs e) { this.TempletPath = BaseConfig.SetConfigInfo("FilePath", "TempletPath", "模板路径"); //初始化文件列表 DataBindingForCombo(cmbPath1, this.TempletPath); }