private string deleteFiles(LabelFiles lbFile, string postFix, string deleteFrom) { string fileToDelete = deleteFrom + "\\" + lbFile.LabelID + "." + postFix; if (File.Exists(fileToDelete)) { File.Delete(fileToDelete); return("✘"); } else { return("○"); } }
private string copyFiles(LabelFiles lbFile, string postFix, string copyFrom, string copyTo, string copyType = "Backup") { string copyFromFile = copyFrom + "\\" + lbFile.LabelID + "." + postFix; string copyToFile = copyTo + "\\" + lbFile.LabelID + "." + postFix; if (File.Exists(copyFromFile)) { File.Copy(copyFromFile, copyToFile); if (copyType == "Backup") { return("√"); } else { return("✔"); } } else { return("○"); } }