private void startClick(object sender, EventArgs e) { if (this.program_path.Text == "") { //this.program_path.Text = PathManager.GetInstance().ProgramPath; } else { PathManager.GetInstance().ProgramPath = this.program_path.Text; } if (this.program_path.Text == "") { //提示program_path路径不能为空; MessageBox.Show("项目路径不能为空"); return; } // if (this.ftp_path.Text == "") { //this.ftp_path.Text = PathManager.GetInstance().FtpPath; } else { PathManager.GetInstance().FtpPath = this.ftp_path.Text; } if (this.ftp_path.Text == "") { //提示program_path路径不能为空; Log.warn("ftp路径不能为空"); return; } // if (this.copy_path.Text == "") { //this.copy_path.Text = PathManager.GetInstance().CopyPath; } else { PathManager.GetInstance().CopyPath = this.copy_path.Text; } if (this.copy_path.Text == "") { //提示program_path路径不能为空; Log.warn("copy路径不能为空"); return; } // if (this.change_path.Text == "") { // this.change_path.Text = PathManager.GetInstance().ChangePath; } else { PathManager.GetInstance().ChangePath = this.change_path.Text; } if (this.change_path.Text == "") { //提示program_path路径不能为空; Log.warn("change路径不能为空"); return; } // if (this.version_txt.Text == "") { // this.change_path.Text = PathManager.GetInstance().ChangePath; } else { PathManager.GetInstance().VersionTxt = this.version_txt.Text; } if (this.version_txt.Text == "") { //提示program_path路径不能为空; Log.warn("项目版本不能为空"); return; } copyfiles(); }