public void getDirListFtp() { this.ftpCred.fileName = "directories.pnz"; this.ftpCred.filePath = GlobalTools.GetexeLocation(); this.getFileFtp(); if (GlobalTools.FileExist(this.ftpCred.filePath + "//" + this.ftpCred.fileName)) { string dirInput; TextReader ReadText = new StreamReader(this.ftpCred.filePath + "//" + this.ftpCred.fileName); while ((dirInput = ReadText.ReadLine()) != null) { if (dirInput != "FileList") { Directory.CreateDirectory(this.ftpCred.filePath + "//" + dirInput); } } } }
public void getFileListFtp() { this.ftpCred.fileName = "currentlist.pnz"; this.ftpCred.filePath = GlobalTools.GetexeLocation(); this.getFileFtp(); if (GlobalTools.FileExist(this.ftpCred.filePath + "//" + this.ftpCred.fileName)) { string listInput; TextReader ReadText = new StreamReader(this.ftpCred.filePath + "//" + this.ftpCred.fileName); while ((listInput = ReadText.ReadLine()) != null) { if (listInput != "FileList") { this.fileNameList.Enqueue(listInput); } } } }
public void ReadConfigFile() { if (GlobalTools.FileExist("Config.pnz")) { string configInput; string[] configElement; TextReader ReadText = new StreamReader("Config.pnz"); while ((configInput = ReadText.ReadLine()) != null) { //configInput = ReadText.ReadLine(); configElement = configInput.Split(':'); if (configElement[0] == "OutputLoc") { if (configElement[1] == "UserDefine") { UserDefineOutputLocChk.IsChecked = true; OutputLocTxtBox.Text = ReadText.ReadLine(); } else if (configElement[1] == "InputLocation") { OutputDefaultChk.IsChecked = true; } else if (configElement[1] == "Default") { DefaultLocDisableChk.IsChecked = true; } } if (configElement[0] == "PDFImage") { if (configElement[1] == "true") { PDFImageProcessing.IsChecked = true; } else { PDFImageProcessing.IsChecked = false; } } } } }