/// <summary> /// 更新用户登陆Logo地址 /// </summary> void RefreshLogo() { string logoUrl = Config.User.LogoUrl; string iniPath = AppDomain.CurrentDomain.BaseDirectory + "Config.ini"; OperateIni.WriteIniData("Enveronment", "logoUrl", logoUrl, iniPath); }
//开始复制图片 private void btn_Start_Click(object sender, EventArgs e) { //判断目标文件夹是否存在,不存在则创建文件 if (!Directory.Exists(txtTargetPath.Text)) { Directory.CreateDirectory(txtTargetPath.Text); } new Thread(run).Start(); picRunning.Visible = true; //保存本次信息 OperateIni.WriteIniData(IniSection, "sourcePath", txtSourcePath.Text); OperateIni.WriteIniData(IniSection, "targetPath", txtTargetPath.Text); OperateIni.WriteIniData(IniSection, "excludeFloder", txtExcludeFloder.Text); ImgType type = new ImgType(); switch (cmbImgType.Text) { case "横图": type = ImgType.Horizon; break; case "竖图": type = ImgType.Vertical; break; default: break; } OperateIni.WriteIniData(IniSection, "imgType", (int)type); OperateIni.WriteIniData(IniSection, "minImgWidth", txtMinImgWidth.Text); OperateIni.WriteIniData(IniSection, "startAt", DateTime.Now); OperateIni.WriteIniData(IniSection, "checkTime", checkTime.Checked); }
//开始重排序图片 private void btn_Relist_Click(object sender, EventArgs e) { new Thread(run).Start(); picRunning.Visible = true; //保存本次设置 OperateIni.WriteIniData(IniSection, "sourcePath", txtSourcePath.Text); OperateIni.WriteIniData(IniSection, "targetPath", txtTargetPath.Text); OperateIni.WriteIniData(IniSection, "excludeFloder", txtExcludeFloder.Text); ImgType type = new ImgType(); switch (cmbImgType.Text) { case "横图": type = ImgType.Horizon; break; case "竖图": type = ImgType.Vertical; break; default: break; } OperateIni.WriteIniData(IniSection, "imgType", (int)type); OperateIni.WriteIniData(IniSection, "minImgWidth", txtMinImgWidth.Text); OperateIni.WriteIniData(IniSection, "startAt", dtpStart.Value); OperateIni.WriteIniData(IniSection, "checkTime", checkTime.Checked); OperateIni.WriteIniData(IniSection, "checkCopy", checkCopy.Checked); OperateIni.WriteIniData(IniSection, "checkDeep", checkDeep.Checked); OperateIni.WriteIniData(IniSection, "limitNum", txtLimitNum.Text); OperateIni.WriteIniData(IniSection, "txtSortReg", txtSortReg.Text); }